/* 站点宽度/圆角默认值 */
:root {
  --page-max: 100%;
  --col-left-w: 212px;
  --col-right-w: 320px;
  --radius: 14px;
  --violet: #7c5cff;
  --pink: #ff5c8a;
  --amber: #ffb347;
}

/* 深色主题色（不含宽度/圆角） */
:root,
html[data-theme="dark"],
html:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #131518;
  --bg2: #101318;
  --panel: #0d0d0d;
  --panel2: #131518;
  --line: #101218;
  --line2: #2e343e;
  --text: #e9ecef;
  --sub: #8b929d;
  --sub2: #626a75;
}

/* 强调色仅由 data-accent 控制，避免被深色主题块盖回绿色 */
html[data-accent="mint"],
html:not([data-accent]),
html[data-accent=""] {
  --accent: #2ee6a6;
  --accent-2: #17b877;
  --accent-dim: rgba(46, 230, 166, .14);
  --accent-soft: rgba(46, 230, 166, .22);
}

html[data-accent="cyan"] {
  --accent: #2ec4ff;
  --accent-2: #1590c2;
  --accent-dim: rgba(46, 196, 255, .14);
  --accent-soft: rgba(46, 196, 255, .22);
}

html[data-accent="violet"] {
  --accent: #7c5cff;
  --accent-2: #5a3fd4;
  --accent-dim: rgba(124, 92, 255, .14);
  --accent-soft: rgba(124, 92, 255, .22);
}

html[data-accent="pink"] {
  --accent: #ff5c8a;
  --accent-2: #d63d68;
  --accent-dim: rgba(255, 92, 138, .14);
  --accent-soft: rgba(255, 92, 138, .22);
}

html[data-accent="amber"] {
  --accent: #ffb347;
  --accent-2: #d4891f;
  --accent-dim: rgba(255, 179, 71, .14);
  --accent-soft: rgba(255, 179, 71, .22);
}

html[data-accent="lime"] {
  --accent: #b4e600;
  --accent-2: #86ad00;
  --accent-dim: rgba(180, 230, 0, .14);
  --accent-soft: rgba(180, 230, 0, .22);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  /* clip 不创建滚动容器，避免破坏左右栏 sticky；hidden 会连带把 overflow-y 算成 auto */
  overflow-x: clip;
  max-width: 100%;
}

body {
  background: var(--bg);
  color: var(--sub);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

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

ul {
  list-style: none
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit
}

img {
  display: block
}

/* ============ ???? ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 14, 17, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  /* 勿设 overflow-x:hidden：会连带裁切头像下拉信息卡 */
}

.topbar-inner {
  max-width: min(var(--page-max), 100%);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 34px;
  width: 100%;
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit
}

.brand.has-logo {
  gap: 0
}

.brand-logo {
  height: 38px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  display: block
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  overflow: hidden;
}

.brand-mark.has-img {
  padding: 0;
  background: transparent
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.brand-mark i {
  font-size: 18px;
  line-height: 1
}

.brand-text .name {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .5px;
  color: var(--text);
}

.brand-text .name em {
  color: var(--accent);
  font-style: normal
}

.brand-text .slogan {
  font-size: 10px;
  color: var(--sub2);
  letter-spacing: 1.5px
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0
}

.main-nav .ms-nav-item,
.main-nav .ms-nav-drop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 9px 14px;
  border-radius: 99px;
  font-size: 14px;
  color: var(--sub);
  transition: color .15s, background .15s;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.main-nav .ms-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.main-nav .ms-nav-item i,
.main-nav .ms-nav-label i {
  font-size: 15px;
  line-height: 1
}

.main-nav .ms-nav-item:hover,
.main-nav .ms-nav-drop:hover,
.main-nav .ms-nav-drop.is-open {
  color: var(--accent);
  background: var(--bg);
}

.main-nav .ms-nav-item.active,
.main-nav .ms-nav-drop.active {
  color: var(--accent);
  background: var(--accent-dim)
}

.main-nav .ms-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
  background: var(--nav-badge, #ef4444);
}

.main-nav .ms-nav-caret {
  font-size: 14px;
  opacity: .7;
  margin-left: 2px
}

.main-nav .ms-nav-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 180px;
  padding: 8px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}

.main-nav .ms-nav-drop.is-open .ms-nav-drop-menu,
.main-nav .ms-nav-drop:hover .ms-nav-drop-menu {
  display: grid;
  gap: 4px
}

.main-nav .ms-nav-drop-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--sub);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.main-nav .ms-nav-drop-item:hover {
  background: var(--panel2);
  color: var(--text)
}

.main-nav .ms-nav-drop-item i {
  font-size: 15px
}

.main-nav .ms-nav-drop-menu.is-cards {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  min-width: 280px;
  gap: 8px;
}

.main-nav .ms-nav-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: var(--panel2);
  color: var(--text);
  text-decoration: none;
  position: relative;
}

.main-nav .ms-nav-card:hover {
  background: var(--accent-dim)
}

.main-nav .ms-nav-card-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent);
  flex: 0 0 auto;
}

.main-nav .ms-nav-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0
}

.main-nav .ms-nav-card-body strong {
  font-size: 13px;
  font-weight: 800
}

.main-nav .ms-nav-card-body small {
  font-size: 11px;
  color: var(--sub2)
}

.main-nav .ms-nav-card-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  background: #ef4444;
  color: #fff;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0
}

.top-actions button,
.top-actions .ms-top-btn,
.top-actions a.ms-top-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--sub);
  background: var(--panel2);
  transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease;
  box-sizing: border-box;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--bg);
}

.top-actions button:hover:not(.ms-user-dd-btn),
.top-actions .ms-top-btn:hover,
.top-actions a.ms-top-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--panel2);
  transform: translateY(-1px);
}

.top-actions .ms-user-dd-btn:hover,
.top-actions .ms-user-dd-btn:focus,
.top-actions .ms-user-dd-btn:active {
  color: inherit;
  border-color: transparent;
  background: transparent;
  transform: none;
  outline: none;
}

.top-actions svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none
}

/* remixicon: match former svg icon slots */
.top-actions i[class^="ri-"] {
  font-size: 18px;
  line-height: 1;
  color: inherit
}

.play-mask i[class^="ri-"] {
  font-size: 22px;
  line-height: 1;
  color: #fff
}

.track-more i[class^="ri-"] {
  font-size: 18px;
  line-height: 1
}

.track-op i[class^="ri-"] {
  font-size: 17px;
  line-height: 1
}

.dj-heat i[class^="ri-"] {
  font-size: 12px;
  line-height: 1;
  color: #ff5c3a
}

.dj-refresh i[class^="ri-"] {
  font-size: 15px;
  line-height: 1
}

.producer-tags i[class^="ri-"] {
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0
}

.producer-tags span:nth-child(3) i[class^="ri-"] {
  color: #ff5c3a
}

.producer-tags span:nth-child(2) i[class^="ri-"] {
  color: #ff5c3a
}

.singer-meta-row i[class^="ri-"],
.singer-intro-box .intro-label i[class^="ri-"],
.singer-detail-actions .buy-btn.detail i[class^="ri-"],
.singer-detail-actions .follow-btn.detail i[class^="ri-"],
.singer-detail-actions .msg-btn.detail i[class^="ri-"],
.singer-detail-actions .share-btn.detail i[class^="ri-"],
.singer-detail-actions a i[class^="ri-"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.singer-meta-row i[class^="ri-"]::before,
.singer-intro-box .intro-label i[class^="ri-"]::before,
.singer-detail-actions .buy-btn.detail i[class^="ri-"]::before,
.singer-detail-actions .follow-btn.detail i[class^="ri-"]::before,
.singer-detail-actions .msg-btn.detail i[class^="ri-"]::before,
.singer-detail-actions .share-btn.detail i[class^="ri-"]::before,
.singer-detail-actions a i[class^="ri-"]::before {
  line-height: 1;
  display: block;
  margin: 0;
  padding: 0;
}

.side-tools i[class^="ri-"],
.side-tools-back i[class^="ri-"] {
  font-size: 19px;
  line-height: 1
}

.album-card .cover-ops .play i[class^="ri-"],
.pl-card .cover-ops .play i[class^="ri-"] {
  font-size: 22px;
  line-height: 1;
  color: inherit
}

.pl-card .cnt i[class^="ri-"] {
  font-size: 12px;
  line-height: 1
}

.page-list-title .ico i[class^="ri-"] {
  font-size: 15px;
  line-height: 1
}

.ms-p-fold i[class^="ri-"] {
  display: block;
  font-size: 16px;
  line-height: 1;
  transition: transform .28s ease
}

.ms-player.is-collapsed .ms-p-fold i[class^="ri-"] {
  transform: rotate(180deg)
}

.ms-p-btn i[class^="ri-"],
.ms-p-main i[class^="ri-"] {
  font-size: 18px;
  line-height: 1
}

.ms-p-vol-wrap>i[class^="ri-"] {
  font-size: 16px;
  line-height: 1
}

.ms-p-list>i[class^="ri-"] {
  font-size: 18px;
  line-height: 1
}

.ms-search-go i[class^="ri-"],
.ms-search-ico i[class^="ri-"] {
  font-size: 18px;
  line-height: 1
}

.ms-theme-mode-btn i[class^="ri-"],
.ms-layout-btn i[class^="ri-"] {
  font-size: 15px;
  line-height: 1
}

.ms-hot-pl-heat i[class^="ri-"] {
  font-size: 11px;
  line-height: 1;
  color: #ff5c3a
}

.ms-hot-pl-play i[class^="ri-"] {
  font-size: 22px;
  line-height: 1
}

.ms-fav-heart i[class^="ri-"] {
  font-size: 20px;
  line-height: 1
}

.ms-uc-empty i[class^="ri-"] {
  font-size: 42px;
  line-height: 1;
  opacity: .55
}

.ms-dl-fab i[class^="ri-"] {
  font-size: 19px;
  line-height: 1
}

.song-actions button i[class^="ri-"],
.song-actions a i[class^="ri-"] {
  font-size: 16px;
  line-height: 1
}

.vinyl-play i[class^="ri-"],
#btnPlayMain i[class^="ri-"] {
  font-size: 28px;
  line-height: 1
}

.ms-uc-nav-more-ico {
  font-size: 16px;
  line-height: 1
}


/* ============ ?? ============ */
.page {
  max-width: min(var(--page-max), 100%);
  margin: 0 auto;
  padding: 20px 24px 48px;
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
  /* 勿设 overflow-x:hidden：会破坏 .col-left/.col-right 的 sticky 悬停 */
}

.col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0
}

.col-left,
.col-right {
  position: -webkit-sticky;
  position: sticky;
  top: 84px;
  align-self: start;
  z-index: 2;
}

#categorySections {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px
}

.panel-title svg {
  width: 17px;
  height: 17px;
  stroke: var(--accent);
  flex-shrink: 0
}

.panel-title i {
  font-size: 17px;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0
}

.panel-title img,
.panel-title .cat-thumb-img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0
}

.panel-more {
  font-size: 12px;
  color: var(--sub2);
  display: flex;
  align-items: center;
  gap: 4px
}

.panel-more:hover {
  color: var(--accent)
}

/* ============ ???? ============ */
.cat-list {
  padding: 14px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px
}

.cat-list a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 11px;
  color: var(--sub);
  font-size: 14px;
  transition: background .15s, color .15s;
}

.cat-list a .ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--panel2);
  display: grid;
  place-items: center;
  color: var(--sub);
  overflow: hidden;
  flex-shrink: 0;
}

.cat-list a .ico svg {
  width: 16px;
  height: 16px;
  stroke: currentColor
}

.cat-list a .ico i {
  font-size: 16px;
  line-height: 1;
  color: inherit
}

.cat-list a .ico img,
.cat-list a .ico .cat-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.cat-list a:hover {
  color: var(--text);
  background: var(--panel2)
}

.cat-list a.active {
  color: var(--accent);
  background: var(--accent-dim);
  font-weight: 500
}

.cat-list a.active .ico {
  background: var(--accent-soft);
  color: var(--accent)
}

.feed-viewport {
  height: 420px;
  overflow: hidden;
  position: relative;
}

.feed-viewport:hover .side-feed {
  animation-play-state: paused
}

.side-feed {
  display: flex;
  flex-direction: column;
  animation: feedScroll 28s linear infinite;
}

.side-feed li {
  border-top: 1px solid var(--line);
  padding: 0;
  margin: 0;
}

.side-feed .feed-item {
  display: flex;
  gap: 10px;
  padding: 11px 14px;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s;
}

.side-feed .feed-item:hover {
  background: var(--panel2)
}

.side-feed .feed-item:hover .song {
  text-decoration: underline
}

.side-feed .feed-item:hover .feed-avatar {
  transform: scale(1.06)
}

@keyframes feedScroll {
  from {
    transform: translateY(0)
  }

  to {
    transform: translateY(-50%)
  }
}

.feed-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform .2s ease;
}

.feed-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.feed-body {
  min-width: 0;
  flex: 1
}

.feed-body .line {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--sub);
}

.feed-body .line b {
  color: var(--text);
  font-weight: 600
}

.feed-body .line .song {
  color: var(--accent);
  transition: text-decoration .15s
}

.feed-body .meta {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--sub2);
}

.feed-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
}

.feed-tag.dl {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent)
}

.feed-tag.fav {
  background: rgba(255, 92, 138, .12);
  color: var(--pink)
}

.feed-tag.pub {
  background: rgba(124, 92, 255, .14);
  color: #a794ff
}

/* ============ ?? ============ */
.banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 340px;
  min-height: 180px;
  transition: height .25s ease
}

.banner-track {
  position: relative;
  width: 100%;
  height: 100%
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .55s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 30px;
  text-decoration: none;
  color: inherit;
  cursor: default;
}

a.banner-slide {
  cursor: pointer
}

.banner-slide.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .58), rgba(0, 0, 0, .18));
  pointer-events: none;
}

.banner-slide>* {
  position: relative;
  z-index: 1
}

.banner-slide.active {
  opacity: 1
}

.banner-slide .kicker {
  font-size: 13px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 14px;
}

.banner-slide h2 {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 1px;
  color: #fff;
}

.banner-slide h2 .grad {
  background: linear-gradient(100deg, #fff, #c9b8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.banner-slide .sub {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  width: fit-content;
  color: #fff;
}

.banner-slide .sub b {
  font-size: 22px;
  color: var(--accent)
}

.banner-1 {
  background: radial-gradient(1200px 600px at 75% 30%, #5b2fbf 0%, #2a1557 45%, #120a24 100%)
}

.banner-2 {
  background: radial-gradient(1200px 600px at 70% 40%, #0f8f76 0%, #0b4a4a 45%, #071917 100%)
}

.banner-3 {
  background: radial-gradient(1200px 600px at 75% 30%, #c2410c 0%, #7c1d3a 50%, #1c0a14 100%)
}

.banner-deco {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .5
}

.banner-dots {
  position: absolute;
  left: 30px;
  bottom: 22px;
  display: flex;
  gap: 8px;
  z-index: 3
}

.banner-dots button {
  width: 22px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .3);
  transition: all .2s;
}

.banner-dots button.active {
  width: 34px;
  background: #fff
}

/* ============ ?????? ============ */
.tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px
}

.tab-btn {
  padding: 7px 15px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--sub);
  transition: all .15s;
  background: var(--bg);
}

.tab-btn:hover {
  color: var(--text)
}

.tab-btn.active {
  background: var(--accent);
  color: #fff;
  font-weight: 700
}

.tab-btn.light.active {
  background: var(--panel2);
  color: var(--accent)
}

/* 歌曲列表固定每行 2 个（最新/分类板块等） */
.track-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  padding: 6px 18px 14px
}

.track {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-radius: 11px;
  align-items: center;
  min-width: 0;
  cursor: pointer;
  transition: background .18s ease;
}

.track:hover {
  background: var(--panel2);
  padding: 10px;
}

.track:hover .track-info .t {
  color: var(--accent)
}

.track:hover .play-mask {
  opacity: 1
}

.track:hover .track-cover img {
  transform: scale(1.08)
}

.track:hover .track-op {
  opacity: 1
}

.track.is-playing .track-info .t {
  color: var(--accent);
  font-weight: 700
}

.track.is-playing .play-mask {
  opacity: 1
}

.track.is-playing .track-op {
  opacity: 1
}

.track-cover {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative
}

.track-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease
}

.track-cover .play-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity .2s ease;
}

.play-mask svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  stroke: none
}

.track-info {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden
}

.track-info .t {
  max-width: 100%;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s;
}

/* 歌曲标题悬停气泡：主题色；左缘对齐列表；右侧栏拉满行宽 */
.ms-title-tip {
  position: fixed;
  z-index: 13000;
  left: 0;
  top: 0;
  box-sizing: border-box;
  max-width: min(92vw, 420px);
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  box-shadow: 0 8px 20px var(--accent-soft);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: opacity .12s ease, visibility .12s ease;
  word-break: break-all;
  white-space: normal;
}

.ms-title-tip.is-on {
  opacity: 1;
  visibility: visible
}

.ms-title-tip.is-block {
  max-width: none
}

.ms-title-tip::after {
  content: "";
  position: absolute;
  left: var(--tip-arrow-x, 24px);
  bottom: -5px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: var(--accent);
  transform: rotate(45deg);
  border-radius: 1px;
}

.ms-title-tip.is-below {
  transform: none
}

.ms-title-tip.is-below::after {
  top: -5px;
  bottom: auto;
}

.track-info .t a {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  font-weight: 400;
}

.track-info .m {
  font-size: 11px;
  color: var(--sub2);
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.track-info .m .ms-meta-today,
.rank-info .m .ms-meta-today,
.ms-hist-meta .m .ms-meta-today,
.ms-plist-sub .ms-meta-today,
.producer-track-grid .m .ms-meta-today {
  color: #94d500
}

.track-more {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--sub);
  transition: background .15s, color .15s;
}

.track-more:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--accent)
}

.track-more svg {
  width: 18px;
  height: 18px
}

.track-op-lbl {
  display: none
}

.track-op {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  opacity: .65;
  transition: opacity .18s;
}

.track-op button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--sub);
  transition: background .15s, color .15s, transform .15s;
  background: var(--panel2);
}

.track-op button:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--accent);
  transform: scale(1.08)
}

.track-op button:active {
  transform: scale(.94)
}

.track-op svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none
}

.track-op .fav.on {
  color: var(--pink)
}

.track-op .fav.on svg {
  fill: currentColor
}

/* ============ ???? ============ */
.rank-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.rank-list {
  padding: 4px 12px 14px
}

.rank-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .18s ease;
}

.rank-list li+li {
  margin-top: 2px
}

.rank-list li:hover {
  background: var(--panel2)
}

.rank-list li:hover .rank-info .t {
  color: var(--accent)
}

.rank-list li:hover .rank-cover img {
  transform: scale(1.08)
}

.rank-list li:hover .rank-badge {
  border-color: var(--accent);
  color: var(--accent)
}

.rank-cover {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease
}

.rank-info {
  flex: 1;
  min-width: 0
}

.rank-info .t {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s
}

.rank-info .t a {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
}

.rank-info .m {
  font-size: 11px;
  color: var(--sub2);
  margin-top: 5px;
}

.rank-badge {
  font-size: 10px;
  color: var(--sub2);
  border: 1px solid var(--line2);
  border-radius: 6px;
  padding: 2px 6px;
  flex-shrink: 0;
  transition: color .15s, border-color .15s;
}

/* ???? */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.album {
  cursor: pointer;
  min-width: 0
}

.album .cover {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 11px;
  overflow: hidden;
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease;
}

.album .cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.album .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .0);
  transition: background .2s;
}

.album:hover .cover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .35)
}

.album:hover .cover img {
  transform: scale(1.08)
}

.album:hover .cover::after {
  background: color-mix(in srgb, var(--accent) 12%, transparent)
}

.album .cnt {
  position: absolute;
  right: 6px;
  bottom: 6px;
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  padding: 2px 7px;
  border-radius: 7px;
  z-index: 1;
}

.album .label {
  margin-top: 7px;
  font-size: 12.5px;
  text-align: center;
  color: var(--sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s
}

.album:hover .label {
  color: var(--accent)
}

/* DJ ??????*/
.dj-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 18px 18px 18px;
}

.dj-card {
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  min-width: 0;
  cursor: pointer;
  aspect-ratio: 1;
  transition: transform .22s ease, box-shadow .22s ease;
}

.dj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .15);
}

.dj-card:hover img {
  transform: scale(1.06)
}

.dj-card:hover .mask {
  background: linear-gradient(180deg, rgba(0, 0, 0, .05) 20%, rgba(0, 0, 0, .72) 100%)
}

.dj-card.big {
  grid-column: span 2;
  grid-row: span 2
}

.dj-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease
}

.dj-card .mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .08) 30%, rgba(0, 0, 0, .5) 100%);
  display: flex;
  align-items: flex-end;
  transition: background .22s;
}

.dj-card .name {
  font-weight: 700;
  font-size: 14px;
  color: #fff !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 5px 10px 5px 10px;
}

.dj-card.big .name {
  font-size: 19px
}

.dj-heat {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, .5);
  border-radius: 8px;
  padding: 0 9px;
  font-size: 10px;
  color: #fff;
}

.dj-heat svg {
  width: 12px;
  height: 12px;
  fill: #ff5c3a;
  stroke: none
}

.dj-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 9px;
}

.dj-refresh {
  display: flex;
  align-items: center;
  gap: 6px
}

.dj-refresh svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none
}

.dj-page-grid {
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 18px 18px
}

.dj-page-grid .dj-card.big {
  grid-column: auto;
  grid-row: auto
}

/* toolbar / ????/ ??????????????????? 10px ??????*/
#listPanel .toolbar {
  padding-left: 18px;
  padding-right: 18px
}

.producer-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 18px 20px
}

.producer-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.producer-row:last-child {
  border-bottom: 0;
  padding-bottom: 4px
}

.producer-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 5px 0 5px;
}

.producer-cover {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  background: var(--panel2);
}

.producer-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .28s ease
}

.producer-cover:hover img {
  transform: scale(1.05)
}

.producer-info {
  flex: 1;
  min-width: 0
}

.producer-name {
  display: inline-block;
  max-width: 100%;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.producer-name:hover {
  color: var(--accent)
}

.producer-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px
}

.producer-tags span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--sub);
  line-height: 1;
}

.producer-tags svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0
}

.producer-tags span:nth-child(1) svg,
.producer-tags span:nth-child(3) svg {
  fill: #ff5c3a;
  stroke: none
}

.producer-tags span:nth-child(2) svg {
  stroke: #ff5c3a;
  fill: none
}

.producer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto
}

.follow-btn,
.msg-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: all .15s;
  line-height: 1.2;
  white-space: nowrap;
}

.follow-btn {
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.follow-btn:hover {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: var(--accent)
}

.follow-btn.on {
  color: var(--sub);
  border-color: var(--line);
  background: var(--panel2);
  font-weight: 600;
}

.msg-btn,
.share-btn {
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--panel2);
}

.msg-btn:hover,
.share-btn:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent)
}

.share-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: all .15s;
  line-height: 1.2;
  white-space: nowrap;
}

.singer-detail-cover {
  width: 100%;
  border-radius: 14px;
  display: block;
  aspect-ratio: 1;
  object-fit: cover
}

.singer-detail-info {
  min-width: 0
}

.singer-detail-name {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: .3px;
  margin: 0 0 14px;
}

.singer-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 10px;
  margin-bottom: 16px;
}

.singer-meta-row>span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--sub);
  line-height: 18px;
  height: 18px;
}

.singer-meta-row>span>i[class^="ri-"] {
  font-size: 14px;
  width: 18px;
  height: 18px;
  color: #ff5c3a;
}

.singer-meta-row .album-price-tag>i[class^="ri-"] {
  color: #ff5c3a;
}

.singer-intro-box {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.singer-intro-box .intro-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 18px;
  height: 18px;
}

.singer-intro-box .intro-label>i[class^="ri-"] {
  font-size: 14px;
  width: 18px;
  height: 18px;
  color: var(--sub);
}

.singer-intro-box .intro-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--sub);
}

.singer-detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.singer-detail-actions .follow-btn.detail,
.singer-detail-actions .msg-btn.detail,
.singer-detail-actions .share-btn.detail,
.singer-detail-actions .buy-btn.detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}

.singer-detail-actions .follow-btn.detail.on,
.singer-detail-actions .buy-btn.detail.on {
  font-weight: 400;
}

.singer-detail-actions .buy-btn.detail {
  color: #fff;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  cursor: pointer;
}

.singer-detail-actions .buy-btn.detail:hover {
  filter: brightness(1.08)
}

.singer-detail-actions .buy-btn.detail.on,
.singer-detail-actions .buy-btn.detail:disabled.on {
  color: var(--sub);
  background: var(--panel2);
  border: 1px solid var(--line);
  cursor: default;
  filter: none;
}

.singer-detail-actions .buy-btn.detail>i[class^="ri-"],
.singer-detail-actions .follow-btn.detail>i[class^="ri-"],
.singer-detail-actions .msg-btn.detail>i[class^="ri-"],
.singer-detail-actions .share-btn.detail>i[class^="ri-"] {
  font-size: 14px;
  width: 18px;
  height: 18px;
}

.singer-meta-row .ms-ico-lbl,
.singer-meta-row .meta-txt,
.singer-intro-box .intro-label .ms-ico-lbl,
.singer-intro-box .intro-label .meta-txt,
.singer-detail-actions .ms-ico-lbl,
.singer-detail-actions .btn-lbl {
  display: inline-flex;
  align-items: center;
  height: 18px;
  line-height: 18px;
  font-weight: 400;
}

.singer-detail-actions .follow-btn.detail {
  color: #fff;
  border: none;
  background: var(--accent);
}

.singer-detail-actions .follow-btn.detail:hover {
  background: var(--accent);
  filter: brightness(1.08)
}

.singer-detail-actions .follow-btn.detail.on {
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent);
}

.singer-detail-actions .msg-btn.detail,
.singer-detail-actions .share-btn.detail {
  color: var(--sub);
  background: var(--panel2);
  border: 1px solid var(--line);
}

.singer-detail-actions .msg-btn.detail:hover,
.singer-detail-actions .share-btn.detail:hover {
  color: var(--accent);
  border-color: var(--bg2);
  background: var(--bg2);
}

/* 手机端：购买/关注/分享三等分平铺；PC 保持原 flex 排布 */
@media (max-width:800px) {
  .singer-detail-actions.album-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .singer-detail-actions.album-action-row.is-triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .singer-detail-actions.album-action-row>.buy-btn.detail,
  .singer-detail-actions.album-action-row>.follow-btn.detail,
  .singer-detail-actions.album-action-row>.share-btn.detail {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
  }
}

.producer-track-grid {
  padding: 0 !important
}

.producer-songs-empty {
  padding: 10px;
  color: var(--sub2);
  font-size: 13px
}

.dj-side-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px;
  padding: 6px 12px 14px;
}

.dj-side-grid .dj-card {
  border-radius: 10px
}

.dj-side-grid .dj-card .mask {
  padding: 8px 9px
}

.dj-side-grid .dj-card .name {
  font-size: 12px
}

/* ?? */
.playlist-list {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px
}

.playlist-list li {
  display: flex;
  gap: 12px;
  padding: 9px 8px;
  align-items: center;
  border-radius: 9px;
  cursor: pointer;
  transition: background .18s ease;
}

.playlist-list li:hover {
  background: var(--panel2)
}

.playlist-list li:hover .rank-info .t {
  color: var(--accent)
}

.playlist-list li:hover .rank-cover img {
  transform: scale(1.08)
}

.playlist-list .rank-cover {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  overflow: hidden
}

.playlist-list .rank-cover img {
  transition: transform .28s ease
}

/* ?? */
.friend-links {
  padding: 4px 16px 16px;
  line-height: 2.1
}

.friend-links a {
  display: inline-block;
  font-size: 12.5px;
  color: var(--sub);
  margin-right: 14px;
}

.friend-links a:hover {
  color: var(--accent)
}

.friend-links-empty {
  font-size: 12px;
  color: var(--muted, #8b929d)
}

.ms-friend-panel .panel-more {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit
}

/* 友链申请弹窗：覆盖支付弹窗 panel 的 text-align:center，改为左对齐表单 */
#ms-friend-modal .ms-friend-dialog {
  width: min(440px, 100%);
  padding: 28px 24px 22px;
  text-align: left;
  box-sizing: border-box;
}

#ms-friend-modal .uc-modal-title {
  margin: 0 0 18px;
  padding-right: 28px;
  text-align: left;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.ms-friend-form {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left
}

.ms-friend-form .field {
  margin: 0 0 14px;
  text-align: left
}

.ms-friend-form .field label {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
  margin: 0 0 6px;
}

.ms-friend-form .field .input {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 42px;
  border-radius: 10px;
  margin: 0;
  border: 1px solid var(--line, #2e343e);
  background: var(--panel2, #15181d);
  color: var(--text);
  padding: 0 12px;
  font-size: 14px;
  text-align: left;
  outline: none;
}

.ms-friend-form .field .input:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}

.ms-friend-tip {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 2px 0 16px;
  padding: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--sub);
  text-align: left;
}

.ms-friend-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 0;
  width: 100%;
}

.ms-friend-cancel,
.ms-friend-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
}

.ms-friend-cancel {
  background: var(--panel2, #1b1f26);
  color: var(--text)
}

.ms-friend-submit {
  background: var(--accent);
  color: #0b1210
}

.ms-friend-submit:disabled {
  opacity: .55;
  cursor: not-allowed
}

/* ============ 右侧悬浮工具栏（对齐社区 site-float） ============ */
.side-tools {
  position: fixed;
  right: 22px;
  bottom: 90px;
  z-index: 70;
  width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  pointer-events: none;
}

.side-tools>*,
.side-tools .side-tools-btn,
.side-tools .side-tools-toggle,
.side-tools .side-tools-back,
.side-tools .ms-dl-fab,
.side-tools .site-qr-hit {
  pointer-events: auto
}

.side-tools-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  order: 10;
}

.side-tools-toggle {
  order: 90
}

.side-tools .ms-dl-fab {
  order: 95
}

.side-tools-back,
#backTop {
  order: 100
}

.side-tools-btn,
.side-tools-toggle,
.side-tools-back,
.side-tools button.side-tools-back,
.side-tools .ms-dl-fab {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--panel) 88%, #fff);
  background: linear-gradient(0deg, var(--panel) 0%, var(--panel2, #1a1d24) 100%);
  box-shadow: 8px 8px 20px rgba(0, 0, 0, .28);
  display: grid;
  place-items: center;
  color: var(--sub);
  transition: transform .2s ease, box-shadow .2s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

html[data-theme="light"] .side-tools-btn,
html[data-theme="light"] .side-tools-toggle,
html[data-theme="light"] .side-tools-back,
html[data-theme="light"] .side-tools button.side-tools-back,
html[data-theme="light"] .side-tools .ms-dl-fab {
  border-color: #fff;
  background-image: linear-gradient(0deg, #fff 0%, #f3f5f8 100%);
  box-shadow: 8px 8px 20px rgba(55, 99, 170, .1);
}

.side-tools-btn:hover,
.side-tools-toggle:hover,
.side-tools-back:hover,
.side-tools .ms-dl-fab:hover {
  transform: translateY(-2px);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 10px 10px 24px rgba(0, 0, 0, .32);
}

.side-tools-btn i,
.side-tools-toggle i {
  font-size: 20px;
  line-height: 1
}

.side-tools-toggle i {
  font-size: 18px;
  transition: transform .2s ease
}

.side-tools.is-collapsed .side-tools-toggle i {
  transform: rotate(180deg)
}

.side-tools.is-collapsed>*:not(.side-tools-toggle):not(.side-tools-back):not(#backTop):not(.ms-dl-fab) {
  display: none !important;
}

.side-tools svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none
}

.site-qr-hit-float {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center
}

@media (max-width:720px) {
  .side-tools {
    right: 12px;
    bottom: 88px;
    width: 44px;
    gap: 8px
  }

  .side-tools-btn,
  .side-tools-toggle,
  .side-tools-back,
  .side-tools .ms-dl-fab {
    width: 44px;
    height: 44px;
  }
}

/* VIP ??????*/
.vip-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(145deg, #f5c518, #ff8a3d);
  border-radius: var(--radius);
  padding: 16px 14px;
  color: #2a1600;
}

.vip-bar .v-title {
  font-weight: 900;
  font-size: 15px
}

.vip-bar .v-sub {
  font-size: 11px;
  opacity: .85;
  line-height: 1.4
}

.vip-bar button {
  background: #2a1600;
  color: #ffd75e;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  width: 100%;
}

/* ?? */
.footer {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 26px 24px 40px;
  text-align: center;
  color: var(--sub2);
  font-size: 12px;
  line-height: 2;
}

.footer a {
  margin: 0 8px
}

.footer a:hover {
  color: var(--accent)
}

/* ============ ????============ */
@media (max-width:1200px) {
  .page {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .col-right {
    position: static;
    top: auto;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .dj-grid,
  .dj-page-grid {
    grid-template-columns: repeat(4, 1fr)
  }

  .banner {
    height: 240px;
    min-height: 200px
  }

  .banner-slide {
    padding: 0 28px
  }

  .banner-slide .kicker {
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 10px
  }

  .banner-slide h2 {
    font-size: 30px
  }

  .banner-slide .sub {
    margin-top: 14px;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 10px
  }

  .banner-slide .sub b {
    font-size: 16px
  }

  .banner-dots {
    left: 28px;
    bottom: 16px
  }
}

@media (max-width:860px) {
  .main-nav {
    display: none
  }

  /* 手机端强制满宽，避免后台 --page-max:xx% 造成两侧大块留白 */
  :root {
    --page-max: 100% !important;
    --col-left-w: 0px;
    --col-right-w: 0px
  }

  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
    overscroll-behavior-x: none
  }

  .page {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    width: 100%;
    padding: 12px 12px 0;
    margin: 0;
    overflow-x: hidden;
  }

  .col-left,
  .col-right {
    position: static;
    top: auto
  }

  /* 主体优先：中间栏 → 右栏 → 左栏；覆盖 dual 布局的两列规则 */
  .page.page-home,
  .page.page-list,
  html[data-ms-layout="dual"] .page.page-home,
  html[data-ms-layout="triple"] .page.page-home {
    grid-template-columns: 1fr !important;
  }

  .page.page-home .col-center,
  .page.page-list>.col-center {
    order: 1;
    display: flex !important;
    width: 100%;
    min-width: 0;
  }

  .page.page-home .col-right,
  .page.page-list>.col-right {
    order: 2;
    grid-column: auto !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }

  /* 手机端不显示左侧分类栏（抽屉菜单已有分类） */
  .col-left,
  .page.page-home .col-left,
  .page.page-list>.col-left,
  html[data-ms-layout="dual"] .page.page-home .col-left,
  html[data-ms-layout="triple"] .page.page-home .col-left {
    display: none !important;
  }

  .col-right {
    grid-column: auto !important;
    grid-template-columns: none
  }

  .track-grid {
    grid-template-columns: 1fr;
    padding: 6px 18px 14px;
  }

  /* 手机端：默认仅三点；点击弹出图二浮层（收藏/下载/播放） */
  .track {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
    position: relative;
  }

  .track-cover {
    grid-column: 1;
    grid-row: 1;
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .track-info {
    grid-column: 2;
    grid-row: 1;
    min-width: 0
  }

  .track-more {
    display: contents;
    grid-column: 3;
    grid-row: 1;
    opacity: 1;
    color: var(--sub2);
    align-self: center;
    position: relative;
    z-index: 2;
    place-items: end;
  }

  .track-op {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
    width: min(140px, calc(100vw - 40px));
    margin: 0;
    padding: 6px;
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .1);
    opacity: 1;
    gap: 2px;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex: none;
  }

  .track.is-ops-open {
    z-index: 31
  }

  .track.is-ops-open .track-op {
    display: flex !important
  }

  .track.is-ops-open .track-more {
    color: var(--accent)
  }

  .track-op button {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 44px;
    padding: 11px 12px;
    border-radius: 10px;
    gap: 10px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    place-items: unset;
    color: var(--text);
    box-sizing: border-box;
    background: none;
  }

  .track-op button:hover {
    background: var(--panel2);
    transform: none
  }

  .track-op-lbl {
    display: inline !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
  }

  .track-op svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto
  }

  .dj-grid,
  .dj-page-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .dj-card.big {
    grid-column: span 2;
    grid-row: span 2
  }

  .producer-head {
    flex-wrap: wrap
  }

  .producer-cover {
    width: 64px;
    height: 64px
  }

  .producer-name {
    font-size: 18px
  }

  .producer-actions {
    margin-left: auto
  }

  .banner {
    height: 148px !important;
    min-height: 148px !important;
    max-height: 148px !important;
    aspect-ratio: auto;
    border-radius: 12px;
  }

  .banner-slide {
    padding: 12px 14px 20px !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  .banner-slide .kicker {
    font-size: 10px !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 4px !important;
    color: rgba(255, 255, 255, .65);
  }

  .banner-slide h2 {
    font-size: 16px !important;
    line-height: 1.35 !important;
    letter-spacing: .2px;
    font-weight: 800 !important;
  }

  .banner-slide .sub {
    margin-top: 8px !important;
    padding: 4px 10px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    gap: 4px;
    border-color: rgba(255, 255, 255, .28);
  }

  .banner-slide .sub b {
    font-size: 11px !important
  }

  .banner-deco {
    display: none !important
  }

  .banner-dots {
    left: 14px !important;
    right: auto;
    bottom: 8px !important;
    gap: 4px;
  }

  .banner-dots button {
    width: 12px;
    height: 3px
  }

  .banner-dots button.active {
    width: 18px
  }

  .ms-p-fold {
    left: 12px !important
  }

  .topbar-inner {
    max-width: 100% !important
  }
}

/* ===== list page shared (album / playlist) ===== */
.page-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  padding: 36px 40px;
  background:
    radial-gradient(900px 420px at 88% 18%, rgba(124, 92, 255, .28), transparent 55%),
    radial-gradient(700px 360px at 8% 85%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 50%),
    linear-gradient(135deg, #17141f 0%, #10141c 50%, #0e1618 100%);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.page-hero .kicker {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 600;
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 1px
}

.page-hero p {
  max-width: 540px;
  color: var(--sub);
  font-size: 14px;
  line-height: 1.7
}

.page-hero .hero-stats {
  margin-top: 8px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.page-hero .hero-stats span {
  font-size: 12px;
  color: var(--sub2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-hero .hero-stats b {
  color: var(--text);
  font-size: 15px
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.toolbar .count {
  font-size: 12px;
  color: var(--sub2)
}

.toolbar .count b {
  color: var(--accent)
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px 20px;
}

.pager button {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  color: var(--sub);
  background: var(--panel2);
  font-size: 13px;
  transition: all .15s;
}

.pager button:hover {
  color: var(--text)
}

.pager button.active {
  background: var(--accent);
  color: #fff;
  font-weight: 700
}

.pager button:disabled {
  opacity: .4;
  cursor: not-allowed
}

/* ===== albums page ===== */
.panel.cd-grid-panel {
  overflow: visible
}

.album-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 28px;
  padding: 18px 22px 18px 18px;
}

.album-card {
  cursor: pointer;
  min-width: 0;
  overflow: visible
}

.album-card .cover-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  transition: transform .22s ease;
}

.album-card .cd-disc {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 12%;
  height: 100%;
  width: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%,
      #0d0d0f 0 6.5%,
      #2e2e32 6.7% 7.5%,
      #141416 7.7% 17%,
      #36363c 17.2% 18%,
      #161618 18.2% 30%,
      #3f3f46 30.2% 31%,
      #18181b 31.2% 46%,
      #4a4a52 46.2% 47%,
      #1a1a1e 47.2% 70%,
      #585861 70.2% 71%,
      #101012 71.2% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .1),
    inset -10px -8px 18px rgba(255, 255, 255, .08),
    inset 12px 10px 20px rgba(0, 0, 0, .25),
    2px 3px 10px rgba(0, 0, 0, .25);
  transition: left .22s ease;
}

.album-card .cd-disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(125deg, rgba(255, 255, 255, .08) 0%, transparent 36%, transparent 54%, rgba(255, 255, 255, .06) 100%);
}

.album-card .cover {
  display: block;
  width: 84%;
  aspect-ratio: 1/1;
  border-radius: 13px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: var(--panel2);
  transition: box-shadow .22s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}

.album-card .cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.album-card .cover-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .65) 100%);
  opacity: .85;
  transition: opacity .2s;
}

.album-card .cover-ops {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .2s;
  background: rgba(0, 0, 0, .35);
}

.album-card .cover-ops .play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  transform: scale(.9);
  transition: transform .2s;
}

.album-card .cover-ops .play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: none
}

.album-card:hover .cover-wrap {
  transform: translateY(-3px)
}

.album-card:hover .cover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, .42)
}

.album-card:hover .cd-disc {
  left: 16%
}

.album-card:hover .cover img {
  transform: scale(1.08)
}

.album-card:hover .cover-ops {
  opacity: 1
}

.album-card:hover .cover-ops .play {
  transform: scale(1)
}

.album-card .cover-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.album-card .badge {
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  line-height: 1.4;
  font-weight: 700;
}

.album-card .badge.hot {
  background: rgba(255, 92, 58, .9)
}

.album-card .badge.new {
  background: color-mix(in srgb, var(--accent) 90%, transparent);
  color: #fff
}

.album-card .badge.paid {
  background: rgba(255, 92, 58, .92);
  color: #fff;
}

.album-card .cover .cnt {
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, .6);
  padding: 2px 7px;
  border-radius: 6px;
  line-height: 1.4;
}

.album-card .meta {
  margin-top: 10px;
  width: 84%;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.album-card .title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s;
}

.album-card:hover .title {
  color: var(--accent)
}

.album-card .sub {
  flex-shrink: 0;
  margin-top: 0;
  font-size: 12px;
  color: var(--sub2);
  white-space: nowrap;
}

@media (max-width:1100px) {
  .album-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media (max-width:860px) {
  .album-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px
  }

  .page-hero {
    padding: 28px 22px;
    min-height: 180px
  }

  .page-hero h1 {
    font-size: 28px
  }
}

/* ===== list skeleton（切页/加载防空白闪烁） ===== */
@keyframes ms-skel-shimmer {
  0% {
    background-position: 100% 0
  }

  100% {
    background-position: -100% 0
  }
}

.ms-skel-card,
.ms-skel-track {
  --skel-base: color-mix(in srgb, var(--panel2) 88%, var(--line));
  --skel-hi: color-mix(in srgb, var(--panel) 70%, var(--line));
}

.ms-skel-cover,
.ms-skel-lines i,
.ms-skel-op {
  background: linear-gradient(90deg, var(--skel-base) 25%, var(--skel-hi) 37%, var(--skel-base) 63%);
  background-size: 400% 100%;
  animation: ms-skel-shimmer 1.2s ease-in-out infinite;
}

.ms-skel-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0
}

.ms-skel-card .ms-skel-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 13px;
}

.ms-skel-card .ms-skel-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 2px
}

.ms-skel-card .ms-skel-lines i {
  display: block;
  height: 12px;
  border-radius: 6px;
}

.ms-skel-card .ms-skel-lines i:first-child {
  width: 78%
}

.ms-skel-card .ms-skel-lines i:last-child {
  width: 42%;
  opacity: .75
}

.ms-skel-track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.ms-skel-track .ms-skel-cover {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.ms-skel-track .ms-skel-lines {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.ms-skel-track .ms-skel-lines i {
  display: block;
  height: 11px;
  border-radius: 6px
}

.ms-skel-track .ms-skel-lines i:first-child {
  width: 62%
}

.ms-skel-track .ms-skel-lines i:last-child {
  width: 36%;
  opacity: .7
}

.ms-skel-track .ms-skel-op {
  flex: 0 0 64px;
  height: 28px;
  border-radius: 999px
}

.is-skel-loading {
  pointer-events: none
}

/* ===== playlists page ===== */
.pl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
}

.pl-card {
  cursor: pointer;
  min-width: 0
}

.pl-card .cover-wrap {
  position: relative;
  padding-right: 8px;
  padding-bottom: 8px;
}

.pl-card .cover-stack {
  position: absolute;
  inset: 8px 0 0 8px;
  border-radius: 13px;
  background: var(--panel2);
  border: 1px solid var(--line);
}

.pl-card .cover {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 13px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition: transform .22s ease, box-shadow .22s ease;
}

.pl-card .cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.pl-card .cover-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, .68) 100%);
}

.pl-card .cover-ops {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .2s;
  background: rgba(0, 0, 0, .35);
}

.pl-card .cover-ops .play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  transform: scale(.9);
  transition: transform .2s;
}

.pl-card .cover-ops .play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: none
}

.pl-card:hover .cover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .42);
}

.pl-card:hover .cover img {
  transform: scale(1.08)
}

.pl-card:hover .cover-ops {
  opacity: 1
}

.pl-card:hover .cover-ops .play {
  transform: scale(1)
}

.pl-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 7px;
}

.pl-card .badge.hot {
  background: rgba(255, 92, 58, .9)
}

.pl-card .badge.new {
  background: color-mix(in srgb, var(--accent) 90%, transparent);
  color: #fff;
  font-weight: 700
}

.pl-card .cnt {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  padding: 3px 8px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pl-card .cnt svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none
}

.pl-card .meta {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.pl-card .title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s;
}

.pl-card:hover .title {
  color: var(--accent)
}

.pl-card .sub {
  flex-shrink: 0;
  margin-top: 0;
  font-size: 12px;
  color: var(--sub2);
  white-space: nowrap;
}

/* default wide grid override (was after playlists media block) */
.pl-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 14px
}

@media (max-width:1100px) {
  .pl-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media (max-width:860px) {
  .pl-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 14px
  }
}

/* list pages: title left + filter pills right */
.page.page-list.page-list-solo {
  grid-template-columns: minmax(0, 1fr)
}

/* 详情页保留右侧栏（热播/下载/广告） */
.page.page-list.is-detail {
  grid-template-columns: minmax(0, 1fr) 320px
}

.page-list-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .2px;
}

.page-list-title .ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent);
}

.page-list-title .ico svg {
  width: 15px;
  height: 15px;
  stroke: currentColor
}

.toolbar .tabs.list-filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap
}

/* ===== musicstation extras ===== */
.page.page-home {
  grid-template-columns: var(--col-left-w, 212px) minmax(0, 1fr) var(--col-right-w, 320px)
}

html[data-ms-layout="dual"] .page.page-home {
  grid-template-columns: minmax(0, 1fr) 320px
}

html[data-ms-layout="dual"] .page.page-home .col-left {
  display: none !important
}

.page.page-list {
  grid-template-columns: minmax(0, 1fr) 320px
}

.page.page-list>.col-center {
  min-width: 0
}

@media (max-width:1200px) {
  .page.page-home {
    grid-template-columns: minmax(0, 1fr) 300px
  }

  .page.page-home .col-left {
    display: none
  }

  .page.page-list {
    grid-template-columns: minmax(0, 1fr) 300px
  }

  .page.page-list.is-detail {
    grid-template-columns: minmax(0, 1fr) 300px
  }

  /* 避免通用 .col-right{grid-column:1/-1} 把右栏拉成整行盖住中间 */
  .page.page-home .col-right,
  .page.page-list>.col-right {
    grid-column: auto;
  }
}

@media (max-width:860px) {

  .page.page-home,
  .page.page-list,
  html[data-ms-layout="dual"] .page.page-home,
  html[data-ms-layout="triple"] .page.page-home {
    grid-template-columns: 1fr !important;
  }
}

.ms-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  height: 64px;
  padding: 0;
  display: flex;
  align-items: center;
  background: rgba(12, 14, 17, .96);
  border: none;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .4);
  backdrop-filter: blur(12px);
  transition: transform .28s cubic-bezier(.22, .9, .28, 1), box-shadow .28s;
}

.ms-player audio {
  display: none !important
}

.ms-p-fold {
  position: absolute;
  /* 与 .ms-player-inner / 主体内容左缘对齐：居中偏移 + 内边距 */
  left: calc((100% - var(--page-max)) / 2 + 24px);
  top: -26px;
  z-index: 2;
  width: 40px;
  height: 26px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: rgba(12, 14, 17, .96);
  color: var(--sub);
  cursor: pointer;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, .25);
  backdrop-filter: blur(12px);
  transition: color .15s, background .15s;
}

.ms-p-fold:hover {
  color: var(--accent);
  background: rgba(22, 26, 32, .98)
}

.ms-p-fold svg {
  display: block;
  transition: transform .28s ease
}

.ms-player.is-collapsed {
  transform: translateY(64px);
  box-shadow: none;
}

.ms-player.is-collapsed .ms-p-fold {
  color: var(--accent);
}

.ms-player.is-collapsed .ms-p-fold svg {
  transform: rotate(180deg)
}

.ms-player-inner {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.ms-p-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0
}

.ms-p-cover {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #222;
}

.ms-p-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.ms-p-meta {
  min-width: 0;
  flex: 1
}

.ms-p-title,
#ms-now {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

a.ms-p-title:hover,
#ms-now:hover {
  color: var(--accent)
}

.ms-p-sub {
  margin-top: 2px;
  font-size: 12px;
  color: #9aa0a6;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-p-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%
}

.ms-p-time {
  font-size: 12px;
  color: #9aa0a6;
  font-variant-numeric: tabular-nums;
  width: 42px;
  flex-shrink: 0
}

.ms-p-time.is-dur {
  text-align: right
}

.ms-p-seek,
.ms-p-vol {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) var(--ms-p, 0%), rgba(255, 255, 255, .16) var(--ms-p, 0%));
}

.ms-p-seek {
  flex: 1;
  min-width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) var(--ms-p, 0%), rgba(255, 255, 255, .16) var(--ms-p, 0%));
}

.ms-p-vol {
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) var(--ms-v, 70%), rgba(255, 255, 255, .16) var(--ms-v, 70%));
}

.ms-p-seek::-webkit-slider-runnable-track,
.ms-p-vol::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: transparent;
}

.ms-p-seek::-webkit-slider-thumb,
.ms-p-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
}

.ms-p-seek::-moz-range-track,
.ms-p-vol::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .16);
  border: none;
}

.ms-p-seek::-moz-range-progress,
.ms-p-vol::-moz-range-progress {
  height: 4px;
  border-radius: 99px;
  background: var(--accent);
  border: none;
}

.ms-p-seek::-moz-range-thumb,
.ms-p-vol::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
}

.ms-p-right {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  flex-shrink: 0
}

.ms-p-controls {
  display: flex;
  align-items: center;
  gap: 2px
}

button.ms-p-btn,
.ms-p-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--sub);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color .15s, background .15s, transform .15s;
}

button.ms-p-btn:hover,
.ms-p-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06)
}

button.ms-p-btn.ms-p-main,
.ms-p-btn.ms-p-main {
  width: 36px;
  height: 36px;
  margin: 0 4px;
  background: var(--accent) !important;
  color: #fff !important;
}

button.ms-p-btn.ms-p-main:hover,
.ms-p-btn.ms-p-main:hover {
  filter: brightness(1.08);
  color: #fff !important;
  transform: scale(1.05);
}

.ms-p-vol-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  color: var(--sub)
}

.ms-p-vol-wrap svg {
  flex-shrink: 0;
  opacity: .9
}

.ms-p-list {
  position: relative;
  width: 34px;
  height: 34px;
  margin-left: 4px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--sub);
  border: none;
  background: transparent;
  cursor: pointer;
}

.ms-p-list:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06)
}

.ms-p-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  text-align: center;
}

/* 无当前曲目时不显示底栏播放器 */
.ms-player.is-empty {
  display: none !important;
}

body {
  padding-bottom: 0
}

/* ?????? */
.ms-plist {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 64px;
  top: 0;
  z-index: 79;
  pointer-events: none;
  visibility: hidden;
}

.ms-plist.is-open {
  pointer-events: auto;
  visibility: visible
}

.ms-plist-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity .28s ease;
}

.ms-plist.is-open .ms-plist-mask {
  opacity: 1
}

.ms-plist-sheet {
  /* ???????????? JS ?? .col-right */
  --ms-plist-w: 320px;
  --ms-page-pad: 24px;
  position: absolute;
  left: auto;
  bottom: 0;
  right: max(var(--ms-page-pad), calc(50% - 720px + var(--ms-page-pad)));
  width: var(--ms-plist-w);
  max-height: min(58vh, 520px);
  display: flex;
  flex-direction: column;
  background: #16181d;
  border: 1px solid rgba(255, 255, 255, .08);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .45);
  transform: translateY(110%);
  transition: transform .32s cubic-bezier(.22, .9, .28, 1);
  box-sizing: border-box;
}

.ms-plist.is-open .ms-plist-sheet {
  transform: translateY(0)
}

.ms-plist-inner {
  width: 100%;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  max-height: min(58vh, 520px);
  box-sizing: border-box;
}

.ms-plist-hd {
  flex-shrink: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ms-plist-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  min-width: 0;
}

.ms-plist-title svg {
  color: var(--accent);
  flex-shrink: 0
}

.ms-plist-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  font-weight: 700;
  text-align: center;
}

.ms-plist-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0
}

.ms-plist-mode {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
}

.ms-plist-mode:hover {
  background: var(--accent-dim)
}

.ms-plist-clear {
  border: none;
  background: transparent;
  color: var(--sub);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 2px;
}

.ms-plist-clear:hover {
  color: var(--text)
}

.ms-plist-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--sub2);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.ms-plist-close:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: scale(1.08);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.ms-plist-close:active {
  transform: scale(.94)
}

.ms-plist-close i {
  font-size: 16px;
  line-height: 1
}

.ms-plist-bd {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 0 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ms-plist-bd::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none
}

.ms-plist-empty {
  padding: 36px 4px;
  text-align: center;
  color: var(--sub2);
  font-size: 13px;
}

.ms-plist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.ms-plist-item:hover {
  background: rgba(255, 255, 255, .04)
}

.ms-plist-item.is-active .ms-plist-name {
  color: var(--accent)
}

.ms-plist-item.is-active .ms-plist-sub {
  color: color-mix(in srgb, var(--accent) 75%, transparent)
}

.ms-plist-meta {
  min-width: 0;
  flex: 1
}

.ms-plist-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-plist-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--sub2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-plist-dur {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--sub2);
  font-variant-numeric: tabular-nums;
}

.ms-plist-item.is-active .ms-plist-dur {
  color: var(--accent)
}

@media (max-width:1100px) {
  .ms-plist-sheet {
    --ms-plist-w: 300px
  }
}

/* 移动端底部 Tab 导航 */
.ms-tabbar {
  display: none
}

@media (max-width:860px) {
  :root {
    --ms-tabbar-h: calc(60px + env(safe-area-inset-bottom, 0px))
  }

  .ms-tabbar {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 86;
    height: var(--ms-tabbar-h);
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    background: rgba(8, 9, 11, .98);
    border-top: 1px solid rgba(255, 255, 255, .06);
    box-shadow: none;
    backdrop-filter: blur(12px);
  }

  .ms-tabbar-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px 4px;
    color: #8b929d;
    text-decoration: none;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
  }

  .ms-tabbar-item i {
    font-size: 22px;
    line-height: 1;
    transition: color .15s, transform .15s;
  }

  .ms-tabbar-item span {
    transform: translateZ(0)
  }

  .ms-tabbar-item.is-on {
    color: var(--accent)
  }

  .ms-tabbar-item:active i {
    transform: scale(.92)
  }

  html[data-theme="light"] .ms-tabbar {
    background: rgba(255, 255, 255, .98);
    border-top-color: rgba(15, 23, 42, .08);
    box-shadow: none;
  }

  html[data-theme="light"] .ms-tabbar-item {
    color: var(--sub2)
  }

  html[data-theme="light"] .ms-tabbar-item.is-on {
    color: var(--accent)
  }

  body {
    padding-bottom: var(--ms-tabbar-h)
  }

  body.ms-has-player {
    padding-bottom: calc(56px + var(--ms-tabbar-h))
  }

  .side-tools {
    bottom: calc(var(--ms-tabbar-h) + 72px) !important
  }

  body.ms-has-player .side-tools {
    bottom: calc(var(--ms-tabbar-h) + 56px + 16px) !important
  }

  .ms-dl-float {
    bottom: calc(var(--ms-tabbar-h) + 72px) !important
  }

  body.ms-has-player .ms-dl-float {
    bottom: calc(var(--ms-tabbar-h) + 56px + 16px) !important
  }
}

@media (max-width:900px) {

  /* 移动端底栏：单行紧凑（封面+信息 | 控制），进度贴顶细线 */
  .ms-player {
    height: 56px;
    bottom: var(--ms-tabbar-h, 0px);
    padding: 0;
    background: rgba(8, 9, 11, .98);
    border-top: none;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .45);
  }

  .ms-player.is-collapsed {
    transform: none
  }

  .ms-p-fold {
    display: none !important
  }

  .ms-player-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    grid-template-columns: none;
    max-width: none;
    height: 56px;
    padding: 0 8px 0 12px;
  }

  .ms-p-left {
    flex: 1;
    min-width: 0;
    gap: 10px
  }

  .ms-p-cover {
    width: 40px;
    height: 40px;
    border-radius: 6px
  }

  .ms-p-title,
  #ms-now {
    font-size: 13px;
    font-weight: 600
  }

  .ms-p-sub {
    font-size: 11px;
    margin-top: 1px;
    color: #8b929d
  }

  .ms-p-progress {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 3px;
    padding: 0;
    gap: 0;
    z-index: 3;
    pointer-events: auto;
  }

  .ms-p-time {
    display: none
  }

  .ms-p-seek {
    width: 100%;
    min-width: 0;
    height: 3px;
    border-radius: 0;
    background: linear-gradient(90deg, var(--accent) var(--ms-p, 0%), rgba(255, 255, 255, .12) var(--ms-p, 0%));
  }

  .ms-p-seek::-webkit-slider-runnable-track {
    height: 3px;
    border-radius: 0
  }

  .ms-p-seek::-webkit-slider-thumb {
    width: 0;
    height: 0;
    margin-top: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
  }

  .ms-p-seek:active::-webkit-slider-thumb,
  .ms-p-seek:focus::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
    margin-top: -3.5px;
    opacity: 1;
    background: #fff;
    border: 2px solid var(--accent);
  }

  .ms-p-seek::-moz-range-track {
    height: 3px;
    border-radius: 0;
    background: rgba(255, 255, 255, .12)
  }

  .ms-p-seek::-moz-range-progress {
    height: 3px;
    border-radius: 0
  }

  .ms-p-seek::-moz-range-thumb {
    width: 0;
    height: 0;
    border: 0;
    background: transparent;
    opacity: 0
  }

  .ms-p-seek:active::-moz-range-thumb,
  .ms-p-seek:focus::-moz-range-thumb {
    width: 10px;
    height: 10px;
    opacity: 1;
    background: #fff;
    border: 2px solid var(--accent);
  }

  .ms-p-right {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 0;
    margin-left: 4px;
  }

  .ms-p-controls {
    gap: 0
  }

  button.ms-p-btn,
  .ms-p-btn {
    width: 32px;
    height: 32px;
    color: #a0a6ad
  }

  button.ms-p-btn.ms-p-main,
  .ms-p-btn.ms-p-main {
    width: 36px;
    height: 36px;
    margin: 0 2px;
  }

  .ms-p-btn i[class^="ri-"] {
    font-size: 18px
  }

  .ms-p-main i[class^="ri-"] {
    font-size: 20px
  }

  .ms-p-vol-wrap {
    display: none !important
  }

  .ms-p-list {
    width: 32px;
    height: 32px;
    margin-left: 2px;
    border-radius: 50%;
  }

  .ms-p-list i[class^="ri-"] {
    font-size: 18px
  }

  .ms-p-badge {
    top: -1px;
    right: -2px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 8px;
    font-size: 10px;
    line-height: 15px;
  }

  .ms-plist {
    bottom: calc(56px + var(--ms-tabbar-h, 0px))
  }

  .ms-plist-sheet {
    --ms-plist-w: auto;
    left: 0;
    right: 0;
    width: auto;
    max-height: 70vh;
    border-radius: 12px 12px 0 0;
  }

  .ms-plist-inner {
    padding: 0 12px;
    max-height: 70vh
  }

  html[data-theme="light"] .ms-player {
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -4px 18px rgba(15, 23, 42, .1);
  }

  html[data-theme="light"] .ms-p-title,
  html[data-theme="light"] #ms-now {
    color: var(--text)
  }

  html[data-theme="light"] .ms-p-sub {
    color: var(--sub2)
  }

  html[data-theme="light"] .ms-p-seek {
    background: linear-gradient(90deg, var(--accent) var(--ms-p, 0%), rgba(15, 23, 42, .12) var(--ms-p, 0%));
  }
}

.ms-form {
  max-width: 640px;
  display: grid;
  gap: 12px;
  padding: 18px
}

.ms-form input,
.ms-form select,
.ms-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font: inherit;
}

.ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font: inherit;
}

.ms-btn.ghost {
  background: transparent;
  border: 1px solid var(--line2);
  color: var(--text)
}

.detail-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 18px
}

@media (max-width:800px) {
  .detail-wrap {
    grid-template-columns: 1fr
  }
}

.ms-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 16px
}

.ms-tabs a {
  padding: 8px 14px;
  border-radius: 9px;
  color: var(--sub);
  background: var(--panel2);
}

.ms-tabs a:hover,
.ms-tabs a.active {
  color: var(--accent);
  background: var(--accent-dim)
}

.top-actions a:not(.ms-user-chip):not(.ms-user-dd-head):not(.ms-user-action) {
  text-decoration: none;
}

.top-actions a.ms-top-btn svg,
.top-actions .ms-top-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none
}

.user-panel {
  padding: 6px 18px 18px
}

.user-panel table {
  width: 100%;
  border-collapse: collapse
}

.user-panel th,
.user-panel td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px
}

.user-panel th {
  color: var(--sub2);
  font-weight: 500
}

/* ===== ??????????+???/ ???? / ??????===== */
/* 分类页：双列（主列表 + 右侧榜单），无左侧导航 */
.page.page-category {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.page.page-category>.col-center {
  min-width: 0
}

.page.page-category .col-left {
  display: none
}

@media (max-width:1200px) {
  .page.page-category {
    grid-template-columns: minmax(0, 1fr) 300px
  }
}

@media (max-width:860px) {
  .page.page-category {
    grid-template-columns: 1fr
  }
}

.cat-detail {
  overflow: hidden
}

.track-grid.track-grid-one {
  grid-template-columns: 1fr;
  padding: 6px 20px 14px
}

.cat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  padding: 16px 20px 16px;
  border-top: 1px solid var(--line);
}

.cat-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex-shrink: 0
}

.cat-toolbar .cat-pager {
  flex-shrink: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  justify-content: flex-end
}

.tool-btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  background: var(--panel2);
  border: 1px solid var(--line);
  transition: all .15s;
}

.tool-btn:hover {
  color: var(--accent);
  border-color: var(--accent)
}

.tool-btn.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

.track-grid-one .track {
  cursor: pointer
}

.track-grid-one .track-cover,
.track-grid-one .track-info .t,
.track-grid-one .track-op,
.track-grid-one .track-op button {
  cursor: pointer
}

.track-grid-one .track-cover {
  overflow: hidden;
  border: 2px solid #3a414d;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}

.track-grid-one .track:hover .track-cover {
  border-color: #5a6575;
}

.track-grid-one .track.is-checked .track-cover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}

.track-check {
  display: none !important
}

/* ???????? */
.rank-badge.badge-hot {
  border-color: rgba(255, 92, 58, .55);
  color: #ff6b45;
  background: rgba(255, 92, 58, .14);
}

.rank-badge.badge-new {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--accent);
  background: var(--accent-dim);
}

.rank-badge.badge-dl {
  border-color: rgba(124, 92, 255, .55);
  color: #a794ff;
  background: rgba(124, 92, 255, .16);
}

.rank-badge.badge-pop {
  border-color: rgba(255, 179, 71, .55);
  color: var(--amber);
  background: rgba(255, 179, 71, .14);
}

.rank-badge.badge-mashup {
  border-color: rgba(255, 92, 138, .55);
  color: var(--pink);
  background: rgba(255, 92, 138, .14);
}

.rank-list li:hover .rank-badge.badge-hot {
  border-color: #ff6b45;
  color: #ff6b45
}

.rank-list li:hover .rank-badge.badge-new {
  border-color: var(--accent);
  color: var(--accent)
}

.rank-list li:hover .rank-badge.badge-dl {
  border-color: #a794ff;
  color: #a794ff
}

.rank-list li:hover .rank-badge.badge-pop {
  border-color: var(--amber);
  color: var(--amber)
}

.rank-list li:hover .rank-badge.badge-mashup {
  border-color: var(--pink);
  color: var(--pink)
}

.cat-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.cat-detail-title {
  display: flex;
  align-items: center;
  gap: 10px
}

.cat-detail-title svg {
  stroke: var(--accent);
  flex-shrink: 0
}

.cat-detail-title h1 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2px;
}

.cat-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--sub2)
}

.cat-breadcrumb .crumb-count {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px
}

.cat-breadcrumb a:hover {
  color: var(--accent)
}

.cat-filters {
  padding: 14px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 12px
}

.filter-row[hidden] {
  display: none !important
}

.filter-label {
  flex-shrink: 0;
  width: 40px;
  padding-top: 7px;
  font-size: 13px;
  color: var(--sub);
  font-weight: 500;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.filter-chips button {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--sub);
  background: var(--panel2);
  border: 1px solid transparent;
  transition: all .15s;
}

.filter-chips button:hover {
  color: var(--text)
}

.filter-chips button.active {
  color: #fff;
  background: var(--accent);
  font-weight: 700;
}

.cat-sort-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 14px 20px 14px;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid var(--line);
}

.sort-tab {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 9px 8px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--sub);
  background: var(--panel2);
  transition: all .15s;
  white-space: nowrap;
}

.sort-tab:hover {
  color: var(--text)
}

.sort-tab.active {
  background: var(--accent);
  color: #fff;
  font-weight: 800
}

@media (max-width:900px) {
  .cat-sort-tabs {
    flex-wrap: wrap
  }

  .sort-tab {
    flex: 1 1 calc(25% - 8px)
  }
}

.song-table-wrap {
  padding: 4px 12px 8px
}

.song-table-head,
.song-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 88px 120px 120px;
  align-items: center;
  gap: 8px;
}

.song-table-head {
  padding: 10px 10px;
  color: var(--sub2);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}

.song-row {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}

.song-row:hover {
  background: var(--panel2)
}

.song-row:hover .song-title {
  color: var(--accent)
}

.col-check {
  display: flex;
  justify-content: center
}

.col-check input {
  display: none
}

.col-check .chk {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line2);
  display: grid;
  place-items: center;
}

.col-check input:checked+.chk {
  border-color: var(--accent);
  background: var(--accent);
}

.col-check input:checked+.chk::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  margin-top: -2px;
}

.col-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0
}

.song-cover {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.song-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.song-cover .play-ico {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  transition: opacity .15s;
}

.song-cover .play-ico svg {
  fill: #fff;
  stroke: none
}

.song-row:hover .song-cover .play-ico {
  opacity: 1
}

.song-meta {
  min-width: 0
}

.song-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s;
}

.song-sub {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--sub2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.col-hot,
.col-time {
  font-size: 13px;
  color: var(--sub);
  text-align: center
}

.col-op {
  display: flex;
  justify-content: center;
  gap: 6px
}

.col-op button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--sub);
  transition: all .15s;
}

.col-op button:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, .06)
}

.col-op .fav-btn.on {
  color: var(--pink)
}

.col-op .fav-btn.on svg {
  fill: currentColor
}

.song-empty {
  padding: 36px 16px;
  text-align: center;
  color: var(--sub2)
}

.cat-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 14px 16px 18px;
}

.cat-pager button {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--panel2);
  color: var(--sub);
  font-size: 13px;
}

.cat-pager button.active {
  background: var(--accent);
  color: #fff;
  font-weight: 700
}

.cat-pager button:disabled {
  opacity: 1;
  cursor: not-allowed
}

.cat-pager .pager-info {
  margin-right: 8px;
  font-size: 12px;
  color: var(--sub2)
}

@media (max-width:900px) {

  .song-table-head .col-hot,
  .song-table-head .col-time,
  .song-row .col-hot,
  .song-row .col-time {
    display: none
  }

  .song-table-head,
  .song-row {
    grid-template-columns: 48px minmax(0, 1fr) 100px
  }
}

@media (max-width:860px) {
  .page.page-category {
    padding: 14px
  }

  /* 标题左、面包屑右，同一行不换行 */
  .cat-detail-head {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 12px;
  }

  .cat-detail-title {
    flex: 0 1 auto;
    min-width: 0;
    gap: 6px;
  }

  .cat-detail-title svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0
  }

  .cat-detail-title h1 {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cat-breadcrumb {
    margin-left: auto;
    flex: 0 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 4px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: flex-end;
  }

  .cat-breadcrumb .crumb-count {
    font-size: 11px;
    flex-shrink: 0
  }

  .filter-row {
    flex-direction: column;
    gap: 8px
  }
}

/* ===== topbar: 三列时与首页中间栏左缘对齐（随 --col-left-w）===== */
.topbar-inner {
  display: grid;
  grid-template-columns: var(--col-left-w, 212px) minmax(0, 1fr) var(--col-right-w, 320px);
  gap: 18px;
  align-items: center;
}

.topbar-inner .brand {
  grid-column: 1;
  flex-shrink: 0;
  min-width: 0;
}

.topbar-inner .main-nav {
  grid-column: 2;
  flex: initial;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.topbar-inner .main-nav::-webkit-scrollbar {
  display: none
}

.topbar-inner .top-actions {
  grid-column: 3;
  flex-shrink: 0;
  justify-self: end;
  margin-left: 0;
}

@media (max-width:1200px) {
  .topbar-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
  }
}

@media (max-width:860px) {
  .topbar-inner {
    grid-template-columns: auto 1fr auto
  }

  .page.page-list {
    grid-template-columns: 1fr
  }
}

/* ============ 手机端顶栏 / 侧栏菜单（桌面保持原样） ============ */
.ms-mnav-toggle {
  display: none
}

.ms-mnav {
  display: none
}

@media (max-width:860px) {

  /* 手机端顶栏固定悬停，下拉页面不跟着滚走 */
  .topbar {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 80;
    background: rgba(10, 10, 12, .56);
    padding-top: env(safe-area-inset-top, 0px);
    border-bottom: none;
  }

  body {
    padding-top: calc(60px + env(safe-area-inset-top, 0px))
  }

  .topbar-inner {
    height: 60px;
    padding: 0 10px 0 6px;
    gap: 0;
    display: flex;
    align-items: center;
    grid-template-columns: none;
  }

  .topbar-inner .brand,
  .topbar-inner .main-nav,
  .topbar-inner .top-actions {
    grid-column: auto;
  }

  /* 图一：隐藏中间品牌，左菜单/搜索/主题，右头像 */
  .topbar-inner .brand {
    display: none !important
  }

  .topbar-inner .main-nav {
    display: none !important
  }

  .ms-mnav-toggle {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--sub);
    cursor: pointer;
  }

  .ms-mnav-toggle i {
    font-size: 20px;
    line-height: 1
  }

  .ms-mnav-toggle:active {
    transform: scale(.96);
    color: var(--text)
  }

  .topbar-inner .top-actions {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0;
    margin-left: 0;
    justify-self: auto;
    justify-content: flex-start;
  }

  .top-actions .ms-top-btn,
  .top-actions a.ms-top-btn {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    border-radius: 8px;
    color: var(--sub);
    box-shadow: none;
    margin: 0;
  }

  .top-actions .ms-top-btn:hover,
  .top-actions a.ms-top-btn:hover {
    color: var(--text);
    background: transparent;
    border-color: transparent;
    transform: none;
  }

  .top-actions .ms-top-btn svg {
    width: 18px;
    height: 18px
  }

  /* 手机端：主题/歌手入驻常显；上传入口走会员导航，顶栏不显示 */
  .top-actions .ms-top-btn-desk {
    display: none !important
  }

  .top-actions .ms-top-btn-theme,
  .top-actions #msUcApply {
    display: grid !important
  }

  .top-actions #msUcUpload {
    display: none !important
  }

  .top-actions .ms-user-dd,
  .top-actions #msBtnLogin {
    margin-left: auto;
  }

  .ms-user-dd-btn {
    border: 0 !important;
    background: transparent !important;
    width: 34px;
    height: 34px;
    padding: 0;
    box-shadow: none !important;
    transform: none !important;
  }

  .ms-user-dd-btn .ms-user-avatar {
    width: 30px;
    height: 30px;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent;
  }

  .top-actions #msBtnLogin {
    border: 0;
    background: transparent;
    width: 34px;
    height: 34px;
  }

  .ms-user-dd-menu,
  body>.ms-user-dd-menu {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 58px;
    width: auto;
    min-width: 0;
    max-width: none;
    z-index: 12040;
  }

  .ms-mnav {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 12050;
    pointer-events: none;
    visibility: hidden;
  }

  .ms-mnav.is-open {
    pointer-events: auto;
    visibility: visible
  }

  .ms-mnav-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .22s ease;
  }

  .ms-mnav.is-open .ms-mnav-mask {
    opacity: 1
  }

  /* 图二：全宽面板，无右侧描边 */
  .ms-mnav-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    background: #0c0c0e;
    border-right: 0;
    box-shadow: none;
    transform: translateX(-104%);
    transition: transform .26s cubic-bezier(.22, .8, .28, 1);
  }

  .ms-mnav.is-open .ms-mnav-panel {
    transform: translateX(0)
  }

  .ms-mnav-hd {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
  }

  .ms-mnav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
  }

  .ms-mnav-logo-img {
    height: 42px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
  }

  .ms-mnav-logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 900;
    font-size: 18px;
    overflow: hidden;
  }

  .ms-mnav-logo-mark.has-img {
    padding: 0;
    background: transparent
  }

  .ms-mnav-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
  }

  .ms-mnav-logo-mark i {
    font-size: 20px;
    line-height: 1
  }

  .ms-mnav-brand-text {
    min-width: 0;
    flex: 1
  }

  .ms-mnav-brand strong {
    display: block;
    font-size: 17px;
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ms-mnav-sub {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, .55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ms-mnav-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .75);
    cursor: pointer;
  }

  .ms-mnav-close i {
    font-size: 20px;
    line-height: 1
  }

  .ms-mnav-close:hover,
  .ms-mnav-close:active {
    background: rgba(255, 255, 255, .1);
    color: #fff
  }

  .ms-mnav-scroll {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    overflow: auto;
    padding: 12px 14px calc(18px + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
  }

  .ms-mnav-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none
  }

  .ms-mnav-list {
    padding: 0;
    margin: 0 0 8px;
    min-width: 0;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .ms-mnav-cats {
    min-width: 0;
    max-width: 100%
  }

  .ms-mnav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 6px 8px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    font: inherit;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line2);
  }

  .ms-mnav-ico {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .75);
  }

  .ms-mnav-ico i {
    font-size: 15px;
    line-height: 1;
    color: inherit;
    width: auto
  }

  .ms-mnav-item>span:not(.ms-mnav-ico) {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ms-mnav-item:hover,
  .ms-mnav-item:active {
    background: rgba(255, 255, 255, .04)
  }

  .ms-mnav-item.is-on {
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 28%, transparent), color-mix(in srgb, var(--accent) 8%, transparent));
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
    color: #fff;
  }

  .ms-mnav-item.is-on .ms-mnav-ico {
    background: var(--accent);
    color: #fff;
  }

  .ms-mnav-caret {
    margin-left: auto;
    opacity: .65;
    transition: transform .18s;
    flex: 0 0 auto
  }

  .ms-mnav-group {
    margin: 0;
    min-width: 0;
    grid-column: 1 / -1
  }

  .ms-mnav-row {
    display: flex;
    align-items: stretch;
    gap: 4px;
    min-width: 0
  }

  .ms-mnav-row .ms-mnav-item {
    flex: 1;
    min-width: 0
  }

  .ms-mnav-fold-btn {
    width: 40px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 10px;
    margin: 0;
    background: transparent;
    color: rgba(255, 255, 255, .55);
    cursor: pointer;
    display: grid;
    place-items: center;
  }

  .ms-mnav-fold-btn:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff
  }

  .ms-mnav-group.is-open .ms-mnav-caret,
  .ms-mnav-group.is-open .ms-mnav-fold-btn i {
    transform: rotate(180deg)
  }

  .ms-mnav-kids {
    display: none;
    padding: 0 0 6px 8px
  }

  .ms-mnav-group.is-open>.ms-mnav-kids {
    display: grid;
    gap: 2px
  }

  .ms-mnav-subitem {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 10px;
    border-radius: 10px;
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
  }

  .ms-mnav-subitem .ms-mnav-ico {
    width: 28px;
    height: 28px;
    border-radius: 7px
  }

  .ms-mnav-subitem .ms-mnav-ico i {
    font-size: 14px
  }

  .ms-mnav-subitem:hover {
    background: rgba(255, 255, 255, .05);
    color: #fff
  }

  .ms-mnav-cats {
    padding-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    max-width: 100%;
  }

  .ms-mnav-cats-title {
    grid-column: 1 / -1;
    font-size: 13px;
    font-weight: 650;
    color: rgba(255, 255, 255, .45);
    padding: 0 2px 2px;
  }

  .ms-mnav-cat {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line2);
    background: rgba(255, 255, 255, .03);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .02em;
    min-width: 0;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ms-mnav-cat:hover,
  .ms-mnav-cat:active {
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
  }

  .ms-mnav-hist {
    padding-top: 10px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .ms-mnav-hist-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0 2px;
    min-width: 0;
  }

  .ms-mnav-hist-hd .ms-mnav-cats-title {
    margin: 0;
    padding: 0;
    min-width: 0
  }

  .ms-mnav-hist-clear {
    border: 0;
    background: transparent;
    padding: 4px 6px;
    margin: 0;
    flex: 0 0 auto;
    color: rgba(255, 255, 255, .45);
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
  }

  .ms-mnav-hist-clear:hover {
    color: var(--accent)
  }

  .ms-mnav-hist-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .ms-mnav-hist-empty {
    padding: 14px 8px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, .4);
  }

  .ms-mnav-hist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, .03);
    color: #fff;
    text-align: left;
    cursor: pointer;
    font: inherit;
    min-width: 0;
    overflow: hidden;
  }

  .ms-mnav-hist-item:hover,
  .ms-mnav-hist-item:active {
    background: rgba(255, 255, 255, .07)
  }

  .ms-mnav-hist-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 auto;
    display: block;
  }

  .ms-mnav-hist-meta {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
  }

  .ms-mnav-hist-meta strong {
    display: block;
    max-width: 100%;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ms-mnav-hist-meta em {
    display: block;
    max-width: 100%;
    font-style: normal;
    font-size: 11px;
    color: rgba(255, 255, 255, .45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ms-mnav-hist-item>i {
    flex: 0 0 auto;
    font-size: 16px;
    color: var(--accent);
    opacity: .85
  }

  .ms-mnav-tools {
    display: none !important
  }

  body.ms-mnav-open {
    overflow: hidden;
    touch-action: none
  }
}

html[data-theme="light"] .ms-mnav-hist {
  border-top-color: var(--line)
}

html[data-theme="light"] .ms-mnav-hist-clear {
  color: var(--sub2)
}

html[data-theme="light"] .ms-mnav-hist-empty {
  color: var(--sub2)
}

html[data-theme="light"] .ms-mnav-hist-item {
  background: var(--panel2);
  color: var(--text)
}

html[data-theme="light"] .ms-mnav-hist-meta em {
  color: var(--sub2)
}

html[data-theme="light"] .ms-mnav-mask {
  background: rgba(15, 23, 42, .36)
}

html[data-theme="light"] .ms-mnav-panel {
  background: #f7f8fa;
  border-right: 0;
  box-shadow: none;
}

html[data-theme="light"] .ms-mnav-close {
  background: var(--panel2);
  color: var(--sub);
}

html[data-theme="light"] .ms-mnav-close:hover {
  color: var(--text)
}

html[data-theme="light"] .ms-mnav-brand strong {
  color: var(--text)
}

html[data-theme="light"] .ms-mnav-sub {
  color: var(--sub2)
}

html[data-theme="light"] .ms-mnav-item {
  color: var(--text)
}

html[data-theme="light"] .ms-mnav-ico {
  background: var(--panel2);
  color: var(--sub)
}

html[data-theme="light"] .ms-mnav-item.is-on {
  color: var(--text)
}

html[data-theme="light"] .ms-mnav-cats {
  border-top-color: var(--line)
}

html[data-theme="light"] .ms-mnav-cats-title {
  color: var(--sub2)
}

html[data-theme="light"] .ms-mnav-cat {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

/* ===== song detail player ===== */
.song-player {
  padding: 18px 18px 8px
}

.song-head {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 18px
}

@media (max-width:720px) {
  .song-head {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center
  }
}

.song-vinyl {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: radial-gradient(circle at center, #111 18%, #1a1d24 19%, #0d0f13 55%, #222 56%, #0a0c10 100%);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

.song-vinyl img {
  position: absolute;
  left: 28px;
  top: 28px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
}

.song-vinyl .vinyl-ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 10px rgba(0, 0, 0, .25);
}

.song-vinyl .vinyl-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  transition: opacity .2s, background .2s, transform .2s;
  pointer-events: none;
}

.song-vinyl:hover .vinyl-play {
  background: rgba(0, 0, 0, .58)
}

.song-player.is-playing .song-vinyl img {
  animation: vinylSpin 8s linear infinite
}

.song-player.is-playing .song-vinyl .vinyl-play {
  opacity: 1;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.song-player.is-playing .song-vinyl .vinyl-play .vinyl-eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 18px;
}

.song-player.is-playing .song-vinyl .vinyl-play .vinyl-eq i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  animation: vinylEq 0.85s ease-in-out infinite;
  transform-origin: center bottom;
}

.song-player.is-playing .song-vinyl .vinyl-play .vinyl-eq i:nth-child(1) {
  height: 8px;
  animation-delay: 0s
}

.song-player.is-playing .song-vinyl .vinyl-play .vinyl-eq i:nth-child(2) {
  height: 16px;
  animation-delay: .15s
}

.song-player.is-playing .song-vinyl .vinyl-play .vinyl-eq i:nth-child(3) {
  height: 11px;
  animation-delay: .3s
}

.song-player.is-playing .song-vinyl .vinyl-play .vinyl-eq i:nth-child(4) {
  height: 15px;
  animation-delay: .08s
}

@keyframes vinylSpin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes vinylEq {

  0%,
  100% {
    transform: scaleY(.35)
  }

  50% {
    transform: scaleY(1)
  }
}

.song-head-meta {
  min-width: 0
}

.song-meta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent);
}

.song-now-line {
  margin: 10px 0 12px;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.5;
}

.song-now-line b {
  color: var(--text);
  font-weight: 700
}

.song-actions #plFollowSlot {
  display: inline-flex
}

.song-actions .follow-btn.detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: auto;
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--accent-dim);
}

.song-actions .follow-btn.detail:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.song-actions .follow-btn.detail.on {
  color: var(--sub);
  background: var(--panel2);
  border: 1px solid var(--line);
}

.song-actions .follow-btn.detail svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: currentColor
}

.song-actions .follow-btn.detail.on svg {
  fill: none;
  stroke: currentColor
}

.song-head-meta h1 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .3px;
  margin-bottom: 10px;
  line-height: 1.35
}

.song-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--sub);
  font-size: 12px;
  margin-bottom: 14px
}

.song-meta-row a {
  color: var(--accent)
}

.song-meta-row a:hover {
  text-decoration: underline
}

.song-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.song-actions .ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
}

.song-actions .ms-btn i {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0
}

.song-actions .ms-btn.on,
.song-actions #btnFav.on {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent)
}

.song-actions .song-dl {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent)
}

.song-actions .song-dl:hover {
  filter: brightness(1.06)
}

.song-actions .song-buy {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent)
}

.song-wave-wrap {
  margin: 6px 0 16px;
  padding: 12px 12px 8px;
  border-radius: 12px;
  background: var(--panel2);
  border: 1px solid var(--line);
  overflow: hidden
}

.song-wave-stage {
  position: relative;
  width: 100%;
  min-height: 72px
}

.song-wave {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 72px;
  cursor: pointer;
  border-radius: 8px;
  box-sizing: border-box;
  background: transparent
}

.song-wave-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 8px;
  z-index: 2;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
  background: linear-gradient(180deg, rgba(8, 12, 18, .12), rgba(8, 12, 18, .34));
}

.song-wave-overlay.is-hidden {
  display: none;
}

.song-wave-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px
}

.song-wave-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0
}

.song-time {
  font-size: 12px;
  color: var(--sub);
  font-variant-numeric: tabular-nums
}

.song-wave-status {
  font-size: 11px;
  color: var(--sub2);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line)
}

.song-wave-status.is-loading {
  color: #e8a070;
  border-color: rgba(210, 105, 62, .4);
  background: rgba(210, 105, 62, .12)
}

.song-wave-status.is-real {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim)
}

.song-wave-status.is-fake {
  color: var(--sub2)
}

.song-wave-ops {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap
}

.wave-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--sub);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.wave-btn:hover,
.wave-btn.on {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim)
}

.wave-btn.wave-btn-mode {
  width: 34px;
  height: 34px;
  padding: 0
}

/* ===== 分享弹层（跟随站点主题） ===== */
.ms-share-modal {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
}

.ms-share-modal[hidden] {
  display: none !important
}

.ms-share-panel[hidden] {
  display: none !important
}

.ms-share-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

html[data-theme="light"] .ms-share-mask {
  background: rgba(15, 23, 42, .36)
}

.ms-share-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55);
  padding: 20px 18px 16px;
  box-sizing: border-box;
}

html[data-theme="light"] .ms-share-panel {
  box-shadow: 0 20px 48px rgba(15, 23, 42, .16);
}

.ms-share-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--sub2);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.ms-share-close:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: scale(1.08);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.ms-share-close:active {
  transform: scale(.94)
}

.ms-share-close i {
  font-size: 16px;
  line-height: 1
}

.ms-share-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 36px 18px 0;
}

.ms-share-hd-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 16px;
}

.ms-share-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .02em;
}

.ms-share-channels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.ms-share-channel {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel2);
  cursor: pointer;
  padding: 14px 8px 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font: inherit;
  color: var(--sub);
  transition: border-color .15s, background .15s, color .15s, transform .12s;
}

.ms-share-channel:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--accent-dim);
  color: var(--text);
  transform: translateY(-1px);
}

.ms-share-channel:active {
  transform: none
}

.ms-share-channel em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700
}

.ms-share-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
}

.ms-share-ico i {
  font-size: 22px;
  line-height: 1
}

.ms-share-ico.wechat {
  background: #07c160
}

.ms-share-ico.weibo {
  background: #e6162d
}

.ms-share-ico.qq {
  background: #12b7f5
}

.ms-share-ico.qzone {
  background: #ffbe2d
}

.ms-share-linkrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 12px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.ms-share-url {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--sub);
  font: inherit;
  font-size: 12px;
  outline: none;
  box-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-share-copy {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  height: 36px;
  padding: 0 14px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px var(--accent-soft);
}

.ms-share-copy:hover {
  filter: brightness(1.06)
}

.ms-share-qr-panel {
  position: relative;
  z-index: 1;
  width: min(300px, 100%);
  margin: 0 auto;
  padding: 16px 18px 18px;
  box-sizing: border-box;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.ms-share-qr-panel[hidden] {
  display: none !important
}

html[data-theme="light"] .ms-share-qr-panel {
  box-shadow: 0 20px 48px rgba(15, 23, 42, .16);
}

.ms-share-qr-hd {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 36px;
  box-sizing: border-box;
}

.ms-share-qr-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.ms-share-qr-panel .ms-share-close {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
}

.ms-share-qr-panel .ms-share-close:hover {
  transform: translateY(-50%) scale(1.08);
}

.ms-share-qr-panel .ms-share-close:active {
  transform: translateY(-50%) scale(.94);
}

.ms-share-qrbox {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  padding: 8px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  box-sizing: border-box;
  flex-shrink: 0;
}

.ms-share-qr {
  width: 184px;
  height: 184px;
  display: block;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
}

.ms-share-qr-tip {
  margin: 0;
  padding: 0 4px;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--sub);
}

@media (max-width:420px) {
  .ms-share-panel {
    padding: 16px 14px 14px
  }

  .ms-share-channel {
    padding: 12px 6px 10px
  }

  .ms-share-ico {
    width: 40px;
    height: 40px;
    border-radius: 11px
  }

  .ms-share-ico i {
    font-size: 20px
  }

  .ms-share-channel em {
    font-size: 11px
  }

  .ms-share-qr-panel {
    width: min(280px, 100%);
    padding: 14px 16px 16px
  }

  .ms-share-qrbox {
    width: 184px;
    height: 184px
  }

  .ms-share-qr {
    width: 168px;
    height: 168px
  }
}

.ms-toast-host {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
  width: auto;
  max-width: min(420px, calc(100vw - 2rem));
}

.ms-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: min(420px, calc(100vw - 2rem));
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.ms-toast.is-show {
  opacity: 1;
  transform: translateY(0)
}

.ms-toast-ico {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  font-weight: 400
}

.ms-toast-text {
  min-width: 0;
  word-break: break-word;
  font-weight: 400
}

/* 深色主题：半透明色底 */
html[data-theme="dark"] .ms-toast.is-success,
html:not([data-theme="light"]) .ms-toast.is-success {
  background: rgba(46, 230, 166, .14);
  border-color: rgba(46, 230, 166, .32);
  color: #7dF0c5;
}

html[data-theme="dark"] .ms-toast.is-success .ms-toast-ico,
html:not([data-theme="light"]) .ms-toast.is-success .ms-toast-ico {
  color: #2ee6a6
}

html[data-theme="dark"] .ms-toast.is-warn,
html[data-theme="dark"] .ms-toast.is-warning,
html:not([data-theme="light"]) .ms-toast.is-warn,
html:not([data-theme="light"]) .ms-toast.is-warning {
  background: rgba(255, 179, 71, .14);
  border-color: rgba(255, 179, 71, .34);
  color: #ffd089;
}

html[data-theme="dark"] .ms-toast.is-warn .ms-toast-ico,
html[data-theme="dark"] .ms-toast.is-warning .ms-toast-ico,
html:not([data-theme="light"]) .ms-toast.is-warn .ms-toast-ico,
html:not([data-theme="light"]) .ms-toast.is-warning .ms-toast-ico {
  color: #ffb347
}

html[data-theme="dark"] .ms-toast.is-error,
html[data-theme="dark"] .ms-toast.is-danger,
html:not([data-theme="light"]) .ms-toast.is-error,
html:not([data-theme="light"]) .ms-toast.is-danger {
  background: rgba(225, 29, 72, .16);
  border-color: rgba(244, 114, 144, .36);
  color: #fda4af;
}

html[data-theme="dark"] .ms-toast.is-error .ms-toast-ico,
html[data-theme="dark"] .ms-toast.is-danger .ms-toast-ico,
html:not([data-theme="light"]) .ms-toast.is-error .ms-toast-ico,
html:not([data-theme="light"]) .ms-toast.is-danger .ms-toast-ico {
  color: #fb7185
}

html[data-theme="dark"] .ms-toast.is-info,
html:not([data-theme="light"]) .ms-toast.is-info {
  background: rgba(13, 148, 136, .14);
  border-color: rgba(45, 212, 191, .32);
  color: #5eead4;
}

html[data-theme="dark"] .ms-toast.is-info .ms-toast-ico,
html:not([data-theme="light"]) .ms-toast.is-info .ms-toast-ico {
  color: #2dd4bf
}

/* 浅色主题：半透明色底 */
html[data-theme="light"] .ms-toast {
  box-shadow: 0 8px 22px rgba(15, 23, 42, .1)
}

html[data-theme="light"] .ms-toast.is-success {
  background: rgba(22, 163, 74, .12);
  border-color: rgba(22, 163, 74, .28);
  color: #147a58;
}

html[data-theme="light"] .ms-toast.is-success .ms-toast-ico {
  color: #16a34a
}

html[data-theme="light"] .ms-toast.is-warn,
html[data-theme="light"] .ms-toast.is-warning {
  background: rgba(217, 119, 6, .12);
  border-color: rgba(217, 119, 6, .28);
  color: #9a6b00;
}

html[data-theme="light"] .ms-toast.is-warn .ms-toast-ico,
html[data-theme="light"] .ms-toast.is-warning .ms-toast-ico {
  color: #d97706
}

html[data-theme="light"] .ms-toast.is-error,
html[data-theme="light"] .ms-toast.is-danger {
  background: rgba(225, 29, 72, .10);
  border-color: rgba(225, 29, 72, .26);
  color: #b01238;
}

html[data-theme="light"] .ms-toast.is-error .ms-toast-ico,
html[data-theme="light"] .ms-toast.is-danger .ms-toast-ico {
  color: #e11d48
}

html[data-theme="light"] .ms-toast.is-info {
  background: rgba(13, 148, 136, .10);
  border-color: rgba(13, 148, 136, .26);
  color: #0b7f7a;
}

html[data-theme="light"] .ms-toast.is-info .ms-toast-ico {
  color: #0d9488
}

.ms-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 12100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.ms-confirm-modal.is-open {
  display: flex
}

.ms-confirm-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55)
}

html[data-theme="light"] .ms-confirm-mask {
  background: rgba(15, 23, 42, .36)
}

.ms-confirm-panel {
  position: relative;
  width: min(92vw, 380px);
  border-radius: 16px;
  padding: 18px 18px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .4);
}

.ms-confirm-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px
}

.ms-confirm-msg {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.6;
  margin-bottom: 16px
}

.ms-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px
}

.song-pl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px
}

.song-pl-tabs .sort-tab {
  padding: 8px 12px
}

.track-info .t a {
  color: inherit
}

.track-info .t a:hover {
  color: var(--accent)
}

.rank-info .t a {
  color: inherit
}

.rank-info .t a:hover {
  color: var(--accent)
}

@media (max-width:720px) {
  .song-head-meta h1 {
    font-size: 20px
  }

  .song-actions {
    justify-content: center
  }
}

/* song player list align + independent guess/copyright panels */
.song-player .song-pl-tabs {
  margin: 4px 0 10px
}

.song-player .song-pl-body {
  margin: 0
}

.song-player .song-pl-body .track-grid,
.song-player .song-pl-body .track-grid.track-grid-one {
  padding: 0;
}

.song-player .song-pl-body .track {
  padding-left: 0;
  padding-right: 0;
}

.song-player .song-pl-body .track:hover {
  padding: 10px;
}

.song-player .song-pl-body .cat-toolbar {
  padding: 10px 0 12px;
  margin-top: 4px;
}

.song-guess .track-grid.track-grid-two {
  padding: 4px 18px 14px;
}

.song-guess-refresh {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.song-guess-refresh i {
  font-size: 14px;
  line-height: 1
}

.song-guess .track {
  padding-left: 0;
  padding-right: 0
}

.song-guess .track:hover {
  padding: 10px;
  background: var(--panel2)
}

.song-copyright-list {
  margin: 0;
  padding: 4px 18px 16px 34px;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.85;
}

.song-copyright-list li {
  margin-bottom: 6px
}

.song-copyright-list li::marker {
  color: var(--accent);
  font-weight: 700
}

/* ===== ????? / ?? / ???? ===== */
.ms-top-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.ms-top-mask.is-open {
  opacity: 1;
  pointer-events: auto
}

.ms-top-pop {
  position: fixed;
  z-index: 91;
  top: 72px;
  right: max(24px, calc(50% - 720px + 24px));
  width: min(360px, calc(100vw - 32px));
  max-height: min(70vh, 520px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #16181d;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
  box-sizing: border-box;
}

/* ???? / ??????????? */
.ms-top-pop.ms-hist-pop,
.ms-top-pop.ms-theme-pop {
  --ms-right-w: 320px;
  width: var(--ms-right-w);
  max-width: none;
  right: max(24px, calc(50% - 720px + 24px));
}

/* ????????? max-height ? flex ??????????????? */
.ms-top-pop.ms-hist-pop.is-open {
  height: min(70vh, 520px);
  max-height: min(70vh, 520px);
  overflow: hidden;
}

.ms-top-pop.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
}

.ms-top-pop-hd {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.ms-top-clear {
  border: none;
  background: transparent;
  color: var(--sub);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
}

.ms-top-clear:hover {
  color: var(--text)
}

.ms-top-empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--sub2);
  font-size: 13px
}

.ms-theme-section {
  padding: 0 14px 14px
}

.ms-theme-label {
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--sub2);
  font-weight: 500;
}

.ms-theme-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px
}

.ms-theme-mode-btn,
.ms-theme-layout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
}

.ms-theme-mode-btn:hover,
.ms-theme-layout-btn:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.ms-theme-mode-btn.is-on,
.ms-theme-layout-btn.is-on {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
}

.ms-theme-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px
}

.ms-theme-dot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font-size: 13px;
}

.ms-theme-dot::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--dot);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .08);
}

.ms-theme-dot.is-on,
.ms-theme-dot:hover {
  border-color: var(--accent);
  background: var(--accent-dim)
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f8;
  --bg2: #e9edf2;
  --panel: #ffffff;
  --panel2: #f0f3f7;
  --line: #f6f6f6;
  --line2: #d3dae3;
  --text: #1a1f27;
  --sub: #5b6572;
  --sub2: #8a94a1;
}

/* 硬编码浅色字在浅色模式下改为跟随主题文字色 */
html[data-theme="light"] .dj-card .name,
html[data-theme="light"] .album .label,
html[data-theme="light"] .track-info .t,
html[data-theme="light"] .rank-info .t,
html[data-theme="light"] .rank-info .t a,
html[data-theme="light"] .panel-title,
html[data-theme="light"] .page-hero h1,
html[data-theme="light"] .crumb {
  color: var(--text);
}

html[data-theme="light"] .track-op button:hover {
  background: rgba(15, 23, 42, .06);
}

html[data-theme="light"] .track-grid-one .track-cover {
  border-color: #d3dae3;
}

html[data-theme="light"] .track-grid-one .track:hover .track-cover {
  border-color: #aeb7c4;
}

html[data-theme="light"] .topbar,
html[data-theme="light"] .ms-player,
html[data-theme="light"] .ms-p-fold {
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 4px 18px rgba(15, 23, 42, .06);
}

html[data-theme="light"] .ms-player {
  border-top-color: var(--line);
  box-shadow: 0 -6px 24px rgba(15, 23, 42, .08);
}

html[data-theme="light"] .ms-p-fold {
  border-color: var(--line);
  box-shadow: 0 -4px 12px rgba(15, 23, 42, .06);
}

html[data-theme="light"] .ms-top-pop,
html[data-theme="light"] .ms-plist-sheet {
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
}

html[data-theme="light"] .ms-top-pop-hd,
html[data-theme="light"] .ms-plist-title,
html[data-theme="light"] .ms-p-title,
html[data-theme="light"] #ms-now {
  color: var(--text);
}

html[data-theme="light"] .ms-top-mask,
html[data-theme="light"] .ms-plist-mask {
  background: rgba(15, 23, 42, .28);
}

html[data-theme="light"] .ms-p-seek,
html[data-theme="light"] .ms-p-vol {
  background: linear-gradient(90deg, var(--accent) var(--ms-p, 0%), rgba(15, 23, 42, .12) var(--ms-p, 0%));
}

html[data-theme="light"] .ms-p-vol {
  background: linear-gradient(90deg, var(--accent) var(--ms-v, 70%), rgba(15, 23, 42, .12) var(--ms-v, 70%));
}

html[data-theme="light"] .footer {
  color: var(--sub2)
}

/* ===== search modal (theme + capsule tabs) ===== */
.ms-top-mask.is-search {
  background: rgba(15, 23, 42, .28);
  backdrop-filter: blur(16px) saturate(1.1);
}

html[data-theme="dark"] .ms-top-mask.is-search,
html:not([data-theme="light"]) .ms-top-mask.is-search {
  background: rgba(0, 0, 0, .45);
}

.ms-search-modal {
  position: fixed !important;
  inset: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  z-index: 92;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 24px 40px;
  box-sizing: border-box;
  background: rgba(15, 23, 42, .32);
  backdrop-filter: blur(14px) saturate(1.05);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .24s, visibility .24s;
}

html[data-theme="dark"] .ms-search-modal,
html:not([data-theme="light"]) .ms-search-modal {
  background: rgba(0, 0, 0, .48);
}

.ms-search-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.ms-search-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 93;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--sub2);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.ms-search-close:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: scale(1.08);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.ms-search-close:active {
  transform: scale(.94)
}

.ms-search-close i {
  font-size: 16px;
  line-height: 1
}

.ms-search-modal-card {
  position: relative;
  width: min(640px, 100%);
  border-radius: 16px;
  padding: 22px 28px 20px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(15, 23, 42, .18);
  color: var(--text);
}

html[data-theme="dark"] .ms-search-modal-card,
html:not([data-theme="light"]) .ms-search-modal-card {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: 0 20px 56px rgba(0, 0, 0, .45);
}

html[data-theme="light"] .ms-search-modal-card {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: 0 16px 48px rgba(15, 23, 42, .14);
}

/* capsule tab bar */
.ms-search-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 2px;
  margin: 0 36px 16px 0;
  padding: 4px;
  width: fit-content;
  max-width: calc(100% - 40px);
  border-radius: 12px;
  background: var(--panel2);
  border: 1px solid var(--line);
  box-sizing: border-box;
  overflow: auto;
  scrollbar-width: none;
}

.ms-search-tabs::-webkit-scrollbar {
  display: none
}

.ms-search-tabs button {
  border: none;
  background: transparent;
  color: var(--sub);
  padding: 8px 18px;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .18s, color .18s, box-shadow .18s;
}

.ms-search-tabs button:hover {
  color: var(--text)
}

.ms-search-tabs button.is-on {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.ms-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 5px 0 14px;
  border-radius: 12px;
  border: 1.5px solid var(--accent);
  background: var(--panel2);
  box-shadow: none;
}

html[data-theme="light"] .ms-search-bar {
  background: #fff
}

.ms-search-ico {
  display: grid;
  place-items: center;
  color: var(--sub2);
  flex-shrink: 0
}

.ms-search-bar input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.ms-search-bar input::placeholder {
  color: var(--sub2)
}

.ms-search-go {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  transition: filter .15s, transform .15s;
}

.ms-search-go:hover {
  filter: brightness(1.06);
  transform: scale(1.04)
}

.ms-search-home {
  margin-top: 18px;
  max-height: min(52vh, 460px);
  overflow: auto;
  scrollbar-width: none
}

.ms-search-home::-webkit-scrollbar {
  display: none
}

.ms-search-block {
  margin-bottom: 16px
}

.ms-search-block-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ms-search-block-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
}

.ms-search-block-title svg {
  opacity: .9;
  color: var(--sub2)
}

.ms-search-block-hd .ms-top-clear {
  color: var(--sub2);
  font-size: 13px
}

.ms-search-block-hd .ms-top-clear:hover {
  color: var(--accent)
}

.ms-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.ms-search-tag {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  background: var(--panel2);
  color: var(--text);
  box-shadow: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="light"] .ms-search-tag {
  background: #fff
}

.ms-search-tag:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim)
}

.ms-search-empty-tip {
  font-size: 13px;
  color: var(--sub2)
}

.ms-search-result {
  margin-top: 16px;
  max-height: min(56vh, 520px);
  overflow: auto;
  padding: 0 2px;
  scrollbar-width: none;
}

.ms-search-result::-webkit-scrollbar {
  display: none
}

.ms-search-result .ms-hist-item {
  background: var(--panel2);
  margin-bottom: 8px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  padding: 10px;
  border: 1px solid var(--line);
}

.ms-search-result .ms-hist-item:hover {
  background: var(--panel);
  border-color: var(--line2)
}

.ms-search-result .ms-hist-meta .t {
  color: var(--text)
}

.ms-search-result .ms-hist-meta .m {
  color: var(--sub2)
}

.ms-search-result .ms-top-empty {
  color: var(--sub2)
}

@media (max-width:860px) {
  .ms-search-modal {
    padding: 8vh 12px 24px
  }

  .ms-search-close {
    right: 10px;
    top: 10px
  }

  .ms-search-modal-card {
    padding: 18px 14px 14px;
    border-radius: 14px
  }

  .ms-search-tabs {
    margin-right: 28px;
    max-width: calc(100% - 32px)
  }

  .ms-search-tabs button {
    padding: 7px 14px;
    font-size: 12px
  }

  .ms-search-bar {
    height: 44px
  }
}

.ms-search-bar.ms-search-bar-page {
  margin: 0 20px 16px;
  width: auto;
  box-sizing: border-box
}

.ms-search-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 20px 16px;
  max-width: 100%;
  box-sizing: border-box;
}

.ms-search-tabs.ms-search-tabs-page {
  display: inline-flex;
  margin: 0;
  max-width: calc(100% - 120px)
}

.ms-collect-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, filter .15s, transform .15s;
}

.ms-collect-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px)
}

.ms-collect-btn[hidden] {
  display: none !important
}

.ms-collect-btn i {
  font-size: 16px;
  line-height: 1
}

@media (max-width:860px) {
  .ms-search-tabs-row {
    margin: 0 12px 14px;
    gap: 8px
  }

  .ms-search-tabs.ms-search-tabs-page {
    max-width: calc(100% - 100px)
  }

  .ms-collect-btn {
    height: 32px;
    padding: 0 10px;
    font-size: 12px
  }
}

.ms-report-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.ms-report-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim)
}

/* themed custom select (replaces native <select>) */
.ms-select {
  position: relative;
  width: 100%;
  margin: 0 0 12px
}

.ms-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ms-select-trigger {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel2);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.ms-select-trigger:hover,
.ms-select.is-open .ms-select-trigger {
  border-color: var(--accent)
}

.ms-select.is-open .ms-select-trigger {
  box-shadow: 0 0 0 3px var(--accent-dim)
}

.ms-select.is-disabled .ms-select-trigger {
  opacity: .55;
  cursor: not-allowed
}

.ms-select-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.ms-select-label.is-placeholder {
  color: var(--sub2)
}

.ms-select-caret {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-right: 2px solid var(--sub2);
  border-bottom: 2px solid var(--sub2);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform .15s ease, border-color .15s;
}

.ms-select.is-open .ms-select-caret {
  transform: rotate(-135deg);
  margin-top: 2px;
  border-color: var(--accent)
}

.ms-select-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .45);
  padding: 6px;
  max-height: 240px;
  overflow: auto;
}

.ms-select.is-open .ms-select-menu {
  display: block
}

.ms-select-opt {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.3;
}

.ms-select-opt:hover {
  background: var(--panel2);
  color: var(--accent)
}

.ms-select-opt.is-on {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 650
}

.ms-select-opt:disabled {
  opacity: .45;
  cursor: not-allowed
}

.ms-report-panel .ms-select {
  margin-bottom: 12px
}

.ms-collect-modal {
  position: fixed;
  inset: 0;
  z-index: 1220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
}

.ms-collect-modal.is-open {
  display: flex
}

.ms-search-page-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px;
  box-sizing: border-box
}

.ms-search-page-result>.ms-top-empty {
  padding-left: 20px;
  padding-right: 20px
}

.ms-search-page-result .track-grid.track-grid-one {
  padding-left: 20px;
  padding-right: 20px
}

.ms-search-page-result .ms-hist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel2);
  text-decoration: none;
  color: inherit;
}

.ms-search-page-result .ms-hist-item:hover {
  border-color: var(--accent);
  background: var(--accent-dim)
}

.ms-search-page-result .ms-hist-item img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.ms-search-page-result .ms-hist-meta .t {
  font-weight: 600;
  color: var(--text)
}

.ms-search-page-result .ms-hist-meta .m {
  font-size: 12px;
  color: var(--sub2);
  margin-top: 4px
}

.ms-search-close {
  right: 10px;
  top: 10px
}

.ms-search-modal-card {
  padding: 18px 14px 14px;
  border-radius: 14px
}

.ms-search-tabs {
  gap: 6px
}

.ms-search-tabs button {
  padding: 6px 12px;
  font-size: 12px
}

.ms-search-bar {
  height: 44px
}
}

.ms-hist-list {
  flex: 1 1 0%;
  min-height: 0;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 0 14px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: none;
}

.ms-hist-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none
}

#msHistPop .ms-hist-item,
.ms-hist-pop .ms-hist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 2px;
  padding: 10px 16px;
  /* ??? 16px ?? */
  border: none;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

#msHistPop .ms-hist-item:last-child,
.ms-hist-pop .ms-hist-item:last-child {
  margin-bottom: 0
}

#msHistPop .ms-hist-item:hover,
.ms-hist-pop .ms-hist-item:hover {
  margin: 0 15px;
  width: calc(100% - 30px);
  padding: 10px;
  background: rgba(255, 255, 255, .08);
}

#msHistPop .ms-hist-item img,
.ms-hist-pop .ms-hist-item img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #222;
  display: block;
}

#msHistPop .ms-hist-meta,
.ms-hist-pop .ms-hist-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.35;
}

#msHistPop .ms-hist-meta .t,
.ms-hist-pop .ms-hist-meta .t {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#msHistPop .ms-hist-meta .m,
.ms-hist-pop .ms-hist-meta .m {
  margin-top: 2px;
  font-size: 12px;
  color: var(--sub2);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width:1100px) {

  .ms-hist-pop,
  .ms-theme-pop {
    --ms-right-w: 300px
  }
}

@media (max-width:860px) {
  .ms-top-pop {
    right: 12px;
    left: 12px;
    width: auto;
    top: 66px
  }

  .ms-hist-pop,
  .ms-theme-pop {
    left: 12px;
    right: 12px;
    width: auto
  }
}

/* 热门制作人：标题左、TAB 右 */
#djProducerPanel .dj-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#djProducerPanel .dj-panel-head .tabs {
  margin-left: auto;
  flex-shrink: 0;
}

@media (max-width:860px) {

  /* 手机端：标题与 TAB 同一行；无标题时 TAB 靠左，「更多」靠右 */
  .panel-head {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 12px 12px 10px;
  }

  .panel-head .panel-title {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 14px;
    gap: 6px;
  }

  .panel-head .tabs {
    margin-left: 0;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 3px;
    justify-content: flex-start;
  }

  .panel-head .tabs .tab-btn {
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 7px;
    white-space: nowrap;
  }

  .panel-head .panel-more {
    margin-left: auto;
    flex: 0 0 auto;
    font-size: 11px;
    white-space: nowrap;
  }

  /* 有标题时：TAB 贴右侧 */
  .panel-head:has(.panel-title) .tabs {
    margin-left: auto;
    flex: 0 0 auto;
  }

  #djProducerPanel .dj-panel-head {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }

  #djProducerPanel .dj-panel-head .tabs {
    margin-left: auto;
    flex: 0 0 auto;
    flex-shrink: 0;
  }

  #djProducerPanel .dj-panel-head .tabs .tab-btn {
    padding: 5px 8px;
    font-size: 11px;
  }

  #djProducerPanel .dj-panel-head .tabs .tab-btn svg {
    width: 12px;
    height: 12px;
  }

  /* 聚合页 toolbar：标题左、TAB 缩小贴右，不换行 */
  .toolbar {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 12px;
  }

  #listPanel .toolbar {
    padding-left: 12px;
    padding-right: 12px
  }

  .toolbar .page-list-title {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 14px;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .toolbar .page-list-title .ico {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .toolbar .page-list-title .ico svg {
    width: 13px;
    height: 13px
  }

  .toolbar .tabs,
  .toolbar .tabs.list-filter-tabs {
    margin-left: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 3px;
  }

  .toolbar .tabs .tab-btn,
  .toolbar .tabs.list-filter-tabs .tab-btn {
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 7px;
    white-space: nowrap;
  }
}

/* ============ 下载弹窗 + 后台角标 ============ */
/* 下载入口：与返回顶部同列，位于其上方（样式跟侧栏圆形按钮） */
.side-tools .ms-dl-fab,
.ms-dl-fab {
  position: relative;
}

.side-tools .ms-dl-fab:hover,
.ms-dl-fab:hover,
.ms-dl-fab.is-active {
  color: var(--accent);
  border-color: var(--accent);
}

.ms-dl-fab svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none
}

.ms-dl-fab-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, .35);
  pointer-events: none;
}

.ms-dl-fab[hidden] {
  display: none !important
}

/* 任务面板：点 FAB 展开；底部与返回顶部按钮底边对齐（side-tools bottom:90px） */
.ms-dl-float {
  position: fixed;
  right: 74px;
  bottom: 90px;
  z-index: 1180;
  display: none;
  flex-direction: column;
  width: min(340px, calc(100vw - 96px));
  max-height: min(52vh, 420px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  overflow: hidden;
}

.ms-dl-float.is-open {
  display: flex
}

html[data-theme="light"] .ms-dl-float {
  box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
}

.ms-dl-float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 8px 8px 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.ms-dl-float-head-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text)
}

.ms-dl-float-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--sub2);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.ms-dl-float-close:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: scale(1.08);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.ms-dl-float-close:active {
  transform: scale(.94)
}

.ms-dl-float-close i {
  font-size: 16px;
  line-height: 1
}

.ms-dl-float-list {
  overflow: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ms-dl-float-item {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 10px 10px 9px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: inherit;
}

.ms-dl-float-item:hover {
  border-color: rgba(124, 92, 255, .35)
}

.ms-dl-float-item.is-done {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent)
}

.ms-dl-float-item.is-error {
  border-color: rgba(255, 92, 122, .4)
}

.ms-dl-float-item.is-queued {
  opacity: .92
}

.ms-dl-float-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 11px;
}

.ms-dl-float-item-phase {
  color: var(--sub);
  font-weight: 700
}

.ms-dl-float-item.is-done .ms-dl-float-item-phase {
  color: var(--accent)
}

.ms-dl-float-item.is-error .ms-dl-float-item-phase {
  color: #ff6b81
}

.ms-dl-float-item-pct {
  color: var(--accent);
  font-weight: 800;
  font-variant-numeric: tabular-nums
}

.ms-dl-float-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 7px;
}

.ms-dl-float-item-track {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
}

html[data-theme="light"] .ms-dl-float-item-track {
  background: rgba(15, 23, 42, .08)
}

.ms-dl-float-item-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--accent) 55%, var(--violet));
  background-size: 200% 100%;
  transition: width .18s ease;
  animation: ms-dl-bar-shine 1.2s linear infinite;
}

.ms-dl-float-item.is-done .ms-dl-float-item-bar,
.ms-dl-float-item.is-error .ms-dl-float-item-bar,
.ms-dl-float-item.is-queued .ms-dl-float-item-bar {
  animation: none
}

.ms-dl-float-item-meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--sub2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width:520px) {
  .ms-dl-float {
    right: 64px;
    left: 12px;
    width: auto;
    bottom: 90px;
    max-height: 42vh;
  }
}

.ms-dl-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
}

.ms-dl-modal.is-open {
  display: flex
}

.ms-dl-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(4px);
}

html[data-theme="light"] .ms-dl-mask {
  background: rgba(15, 23, 42, .36);
}

.ms-dl-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55);
  color: var(--text);
}

html[data-theme="light"] .ms-dl-panel {
  box-shadow: 0 20px 48px rgba(15, 23, 42, .16);
}

.ms-dl-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ms-dl-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1
}

.ms-dl-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 6px 16px var(--accent-soft);
}

.ms-dl-logo-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px
}

.ms-dl-logo-text strong {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .3px;
  line-height: 1.2;
  color: var(--text)
}

.ms-dl-logo-text strong em {
  font-style: normal;
  color: var(--accent)
}

.ms-dl-logo-text span {
  font-size: 11px;
  color: var(--sub2)
}

.ms-dl-id {
  flex-shrink: 0;
  margin-top: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ms-dl-title {
  margin: 16px 0 14px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  word-break: break-word;
  color: var(--text);
}

.ms-dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ms-dl-cell {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  min-width: 0;
}

.ms-dl-cell .k {
  color: var(--sub);
  flex-shrink: 0
}

.ms-dl-cell .k::after {
  content: ':'
}

.ms-dl-cell .v {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.ms-dl-cell .v.free {
  color: var(--amber)
}

.ms-dl-cell .v.paid {
  color: var(--amber)
}

.ms-dl-progress {
  margin: 12px 0 4px;
  padding: 12px 12px 10px;
  border-radius: 12px;
  background: rgba(124, 92, 255, .08);
  border: 1px solid rgba(124, 92, 255, .22);
}

html[data-theme="light"] .ms-dl-progress {
  background: rgba(124, 92, 255, .06);
  border-color: rgba(124, 92, 255, .18);
}

.ms-dl-progress[hidden] {
  display: none !important
}

.ms-dl-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}

.ms-dl-progress-label {
  color: var(--text);
  font-weight: 700
}

.ms-dl-progress-pct {
  color: var(--accent);
  font-weight: 800;
  font-variant-numeric: tabular-nums
}

.ms-dl-progress-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
}

html[data-theme="light"] .ms-dl-progress-track {
  background: rgba(15, 23, 42, .08)
}

.ms-dl-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--accent) 55%, var(--violet));
  background-size: 200% 100%;
  transition: width .18s ease;
  animation: ms-dl-bar-shine 1.2s linear infinite;
}

@keyframes ms-dl-bar-shine {
  0% {
    background-position: 100% 0
  }

  100% {
    background-position: -100% 0
  }
}

.ms-dl-progress-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--sub2);
  word-break: break-all;
  line-height: 1.45;
}

.ms-dl-status {
  margin-top: 12px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
  color: var(--sub);
  font-size: 13px;
}

.ms-dl-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ms-dl-btn {
  height: 46px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 400;
  transition: transform .12s, filter .12s, opacity .12s;
}

.ms-dl-btn:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px)
}

.ms-dl-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none
}

.ms-dl-btn.confirm {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 30px var(--accent-soft);
}

.ms-dl-btn.vip {
  background: var(--panel2);
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 8px 18px var(--accent-dim);
}

html[data-theme="light"] .ms-dl-btn.vip {
  background: #fff;
}

.ms-dl-foot {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--sub2)
}

.ms-dl-foot .tip {
  color: var(--amber);
  margin-bottom: 4px
}

.ms-dl-foot .note {
  color: var(--sub);
  margin-bottom: 8px
}

.ms-dl-foot .perm {
  color: var(--sub2)
}

.ms-dl-foot .perm-label {
  color: var(--accent);
  font-weight: 700
}

@media (max-width:520px) {
  .ms-dl-panel {
    padding: 18px 14px 14px
  }

  .ms-dl-title {
    font-size: 17px
  }

  .ms-dl-brand {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }

  .ms-dl-logo {
    min-width: 0;
    flex: 1
  }

  .ms-dl-logo-text strong {
    font-size: 15px
  }

  .ms-dl-logo-text span {
    font-size: 10px
  }

  .ms-dl-id {
    margin-top: 2px;
    padding: 4px 10px;
    font-size: 11px;
  }

  .ms-dl-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px
  }

  .ms-dl-cell {
    padding: 9px 8px;
    font-size: 12px;
    gap: 4px
  }

  .ms-dl-actions {
    grid-template-columns: 1fr
  }
}

/* ============ ???????????? ============ */
.ms-fav-modal {
  position: fixed;
  inset: 0;
  z-index: 1210;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
}

.ms-fav-modal.is-open {
  display: flex
}

.ms-fav-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(4px);
}

html[data-theme="light"] .ms-fav-mask {
  background: rgba(15, 23, 42, .36)
}

.ms-fav-panel {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55);
  color: var(--text);
}

html[data-theme="light"] .ms-fav-panel {
  box-shadow: 0 20px 48px rgba(15, 23, 42, .16);
}

.ms-fav-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.ms-fav-hd-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ms-fav-hd-title strong {
  font-size: 18px;
  font-weight: 800
}

.ms-fav-heart {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-dim);
}

.ms-fav-heart svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none
}

.ms-fav-x {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--sub2);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.ms-fav-x:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: scale(1.08);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.ms-fav-x:active {
  transform: scale(.94)
}

.ms-fav-song {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.ms-fav-note {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 900;
}

.ms-fav-song-title {
  min-width: 0;
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ms-fav-label {
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 8px
}

.ms-fav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
  margin-bottom: 12px;
  scrollbar-width: thin;
}

.ms-fav-empty {
  padding: 16px 12px;
  text-align: center;
  color: var(--sub2);
  font-size: 13px;
  background: var(--panel2);
  border: 1px dashed var(--line);
  border-radius: 10px;
}

.ms-fav-empty a {
  color: var(--accent);
  text-decoration: underline
}

.ms-fav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .15s, background .15s, color .15s;
}

.ms-fav-item .n {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.ms-fav-item .c {
  flex-shrink: 0;
  color: var(--sub2);
  font-weight: 500;
  font-size: 13px
}

.ms-fav-item:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.ms-fav-item.is-on {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.ms-fav-item.is-on .c {
  color: var(--accent)
}

.ms-fav-create {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.ms-fav-create input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.ms-fav-create input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim)
}

.ms-fav-create input::placeholder {
  color: var(--sub2)
}

.ms-fav-adduse {
  flex-shrink: 0;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.ms-fav-adduse:hover {
  filter: brightness(1.05)
}

.ms-fav-adduse:disabled {
  opacity: .5;
  cursor: not-allowed
}

.ms-fav-actions {
  display: block
}

.ms-fav-btn {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  transition: transform .12s, filter .12s, opacity .12s;
}

.ms-fav-btn:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px)
}

.ms-fav-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none
}

.ms-fav-btn.ok {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 20px var(--accent-soft);
  border: 0;
  cursor: pointer;
}

@media (max-width:520px) {
  .ms-fav-panel {
    padding: 16px 14px 14px
  }

  .ms-fav-create {
    flex-direction: column;
    align-items: stretch
  }

  .ms-fav-adduse {
    width: 100%
  }
}

/* user center account + logout */
.ms-user-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch
}

.ms-user-account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px 2px;
}

.ms-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}

.ms-user-meta {
  min-width: 0;
  flex: 1
}

.ms-user-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3
}

.ms-user-sub {
  font-size: 12px;
  color: var(--sub2);
  margin-top: 2px
}

.ms-logout-btn {
  flex-shrink: 0;
  white-space: nowrap
}

.cat-list a.is-logout {
  color: var(--sub)
}

.cat-list a.is-logout:hover {
  color: #ff5c8a;
  background: rgba(255, 92, 138, .1)
}

@media (max-width:640px) {
  .ms-user-account {
    flex-wrap: wrap
  }

  .ms-logout-btn {
    width: 100%;
    text-align: center
  }
}

/* ============ 登录 / 注册 / 找回（与社区 uc-auth 同结构同字段） ============ */
.uc-auth-modal,
.ms-auth-modal,
.ms-login-modal {
  position: fixed;
  inset: 0;
  z-index: 12100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
}

.uc-auth-modal.open,
.uc-auth-modal.is-open,
.ms-auth-modal.is-open,
.ms-login-modal.is-open {
  display: flex
}

.uc-auth-modal .uc-modal-mask,
.ms-auth-mask,
.ms-login-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(4px);
}

html[data-theme="light"] .uc-auth-modal .uc-modal-mask {
  background: rgba(15, 23, 42, .36)
}

.uc-auth-panel {
  position: relative;
  z-index: 1;
  text-align: left;
  width: min(460px, 100%);
  padding: 0;
  overflow: hidden;
  max-height: min(92vh, 920px);
  overflow: auto;
  display: flex;
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55);
  isolation: isolate;
  color: var(--text);
  scrollbar-width: none;
}

.uc-auth-panel::-webkit-scrollbar {
  display: none
}

.uc-auth-panel::before,
.uc-auth-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

.uc-auth-panel::before {
  width: min(240px, 90%);
  height: 120px;
  top: -48px;
  right: -28px;
  background: radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--accent) 22%, var(--panel)) 0%, transparent 86%);
}

.uc-auth-panel::after {
  width: min(200px, 82%);
  height: 100px;
  bottom: -30px;
  left: -32px;
  background: radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--accent) 12%, var(--panel)) 0%, transparent 86%);
}

.uc-auth-panel> :not(.uc-modal-x) {
  position: relative;
  z-index: 1
}

.uc-auth-modal .uc-modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sub2);
  background: var(--panel2);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.uc-auth-modal .uc-modal-x i {
  font-size: 16px;
  line-height: 1
}

.uc-auth-modal .uc-modal-x:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: scale(1.08);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.uc-auth-modal .uc-modal-x:active {
  transform: scale(.94)
}

.uc-auth-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.uc-auth-header {
  margin: 0 0 26px;
  text-align: center
}

.uc-auth-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--text)
}

.uc-auth-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--sub);
  opacity: .95
}

.uc-auth-form {
  margin: 0
}

.uc-auth-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 0 0 14px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--panel2);
  border: 1px solid transparent;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.uc-auth-field:focus-within {
  background: var(--panel);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.uc-auth-field label {
  flex: 0 0 auto;
  min-width: 3.6em;
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 22px;
  color: var(--sub);
  white-space: nowrap;
}

.uc-auth-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  line-height: 22px;
  color: var(--text);
  outline: none;
  box-shadow: none !important;
}

.uc-auth-input::placeholder {
  color: var(--sub2)
}

.uc-auth-field-action {
  padding-right: 8px
}

.uc-auth-field-captcha {
  padding: 6px 10px 6px 14px;
  gap: 10px;
  min-height: 52px
}

.uc-auth-captcha {
  display: block;
  flex: 0 0 auto;
  height: auto;
  max-height: 36px;
  width: auto;
  max-width: 112px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  object-fit: contain;
  background: transparent;
}

.uc-auth-action {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 8px;
  margin-left: 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.uc-auth-action:hover {
  opacity: .85
}

.uc-auth-action:disabled {
  opacity: .55;
  cursor: not-allowed
}

.uc-auth-channel {
  margin: 0 0 14px
}

.uc-auth-channel .ms-select {
  width: 100%
}

.uc-auth-channel .ms-select-trigger {
  height: 48px;
  border-radius: 10px;
  font-size: 14px;
  padding: 0 14px
}

.uc-auth-row {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 16px;
  font-size: 13px
}

.uc-auth-row a {
  color: var(--accent);
  font-weight: 650;
  text-decoration: none
}

.uc-auth-row a:hover {
  opacity: .8
}

.uc-auth-btn {
  display: block;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  margin: 0;
  cursor: pointer;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 20px var(--accent-soft);
}

.uc-auth-btn:hover {
  filter: brightness(1.05)
}

.uc-auth-btn:disabled {
  opacity: .5;
  cursor: not-allowed
}

.uc-auth-legal {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--sub2);
  text-align: center
}

.uc-auth-legal a {
  color: var(--sub);
  text-decoration: underline;
  text-underline-offset: 2px
}

.uc-auth-legal a:hover {
  color: var(--accent)
}

.uc-auth-switch {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--sub);
  text-align: center
}

.uc-auth-switch a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none
}

.uc-auth-switch a:hover {
  text-decoration: underline
}

.uc-auth-alts {
  margin-top: 18px
}

.uc-auth-alts-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--sub2);
  font-size: 12px;
  line-height: 1;
}

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

.uc-auth-alts-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap
}

.uc-auth-alt {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--panel2);
  color: var(--sub);
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  transition: transform .15s, border-color .15s, color .15s, box-shadow .15s;
}

.uc-auth-alt:hover {
  transform: translateY(-1px);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18)
}

.uc-auth-alt-wechat {
  color: #07c160
}

.uc-auth-alt-qq {
  color: #12b7f5
}

.uc-auth-alt-alipay {
  color: #1677ff
}

.uc-auth-alt-sina {
  color: #e6162d
}

.uc-auth-alt-baidu {
  color: #2932e1
}

.uc-auth-alt-huawei,
.uc-auth-alt-xiaomi {
  color: var(--text)
}

.uc-auth-alt-douyin {
  color: #111
}

.uc-auth-alt-bilibili {
  color: #fb7299
}

.uc-auth-alt-dingtalk {
  color: #0089ff
}

.uc-auth-alt-phone,
.uc-auth-alt-account {
  color: var(--accent)
}

@media (max-width:560px) {
  .uc-auth-main {
    padding: 24px 18px
  }

  .uc-auth-title {
    font-size: 20px
  }

  .uc-auth-field label {
    min-width: 3em
  }
}

/* ============ ??????? ============ */
.ms-uc-body .page {
  display: none
}

.ms-uc-wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 20px 24px 48px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: calc(100vh - 140px);
}

.ms-uc-side {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--panel);
  border-radius: 16px;
  padding: 12px 10px;
  box-shadow: 8px 8px 20px 0 rgba(55, 99, 170, .05);
}

.ms-uc-side-profile {
  padding: 14px 12px 12px;
  border-radius: 14px;
  background: var(--panel2);
  border: 1px solid var(--line);
  text-align: center;
}

.ms-uc-side-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
}

.ms-uc-side-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.ms-uc-side-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.ms-uc-side-vip-mark {
  position: absolute;
  right: -2px;
  bottom: -2px;
  z-index: 2;
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  color: #fff;
  background: linear-gradient(135deg, #5b8cff, var(--accent));
  border: 2px solid var(--panel);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
  line-height: 1;
  pointer-events: none;
}

.ms-uc-side-vip-mark i {
  font-size: 12px;
  line-height: 1
}

.ms-uc-side-vip-mark.is-singer {
  background: linear-gradient(135deg, #ffb347, #ff7a45);
}

.ms-uc-side-name {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.3;
  word-break: break-all;
  margin-top: 2px
}

.ms-uc-side-id {
  margin-top: 8px;
  font-size: 11px;
  color: var(--sub2)
}

.ms-uc-side-balance {
  margin-top: 6px;
  font-size: 12px;
  color: var(--sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  cursor: pointer;
}

.ms-uc-side-balance:hover {
  color: var(--accent)
}

.ms-uc-side-balance .coin {
  color: var(--amber);
  font-size: 14px;
  line-height: 1
}

.ms-uc-side-balance b {
  color: var(--text);
  font-weight: 800
}

.ms-uc-side-balance:hover b {
  color: var(--accent)
}

/* ===== 我的资金 / 积分兑换 ===== */
.ms-funds {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.ms-funds .ms-uc-settings-tabs a.ms-uc-settings-tab {
  text-decoration: none;
  box-sizing: border-box
}

.ms-funds-hero .ms-funds-stats {
  margin-top: 14px
}

.ms-exchange-form {
  margin-top: 14px;
  width: 100%;
  max-width: none
}

.ms-exchange-form .row,
.ms-exchange-form .ms-uc-bind-row {
  width: 100%
}

.ms-exchange-form select,
.ms-exchange-form input {
  width: 100%
}

.ms-exchange-form .ms-uc-bind-row .ms-uc-btn {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  white-space: nowrap;
}

.ms-exchange-preview {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--accent-dim);
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--sub);
}

.ms-exchange-preview b {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
  font-variant-numeric: tabular-nums
}

.ms-exchange-preview em {
  font-style: normal;
  font-weight: 700;
  color: var(--text)
}

.ms-funds-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ms-funds-stat {
  padding: 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel2);
}

.ms-funds-stat em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
  color: var(--sub);
}

.ms-funds-stat em i {
  font-size: 14px;
  line-height: 1
}

.ms-funds-stat b {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.ms-funds-stat.is-gold em,
.ms-funds-stat.is-gold em i {
  color: var(--amber)
}

.ms-funds-stat.is-gold b {
  color: var(--amber)
}

.ms-funds-logs .ms-funds-log-meta {
  font-size: 12px;
  color: var(--sub2)
}

.ms-funds-log-list {
  display: flex;
  flex-direction: column;
  gap: 0
}

.ms-funds-log-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.ms-funds-log-item:last-child {
  border-bottom: 0
}

.ms-funds-log-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.ms-funds-log-main strong {
  font-size: 13px;
  font-weight: 750;
  color: var(--text)
}

.ms-funds-log-main span {
  font-size: 12px;
  color: var(--sub);
  line-height: 1.45;
  word-break: break-word
}

.ms-funds-log-main em {
  font-size: 11px;
  font-style: normal;
  color: var(--sub2)
}

.ms-funds-log-side {
  flex: 0 0 auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.ms-funds-log-side b {
  font-size: 15px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--text)
}

.ms-funds-log-side b.is-plus {
  color: #2ecc71
}

.ms-funds-log-side b.is-minus {
  color: #ff6b7a
}

.ms-funds-log-side span {
  font-size: 11px;
  color: var(--sub2)
}

.ms-funds-empty {
  padding: 28px 8px;
  text-align: center;
  font-size: 13px;
  color: var(--sub2)
}

.ms-funds-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ms-funds-pager a,
.ms-funds-pager span {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--sub);
  border: 1px solid var(--line);
  background: var(--panel2);
}

.ms-funds-pager a:hover {
  color: var(--accent);
  border-color: var(--accent)
}

.ms-funds-pager .is-cur {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2))
}

.ms-funds-pager-nav.is-disabled {
  opacity: .4;
  pointer-events: none
}

@media (max-width:900px) {
  .ms-funds-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media (max-width:560px) {
  .ms-funds-log-item {
    flex-direction: column;
    gap: 8px
  }

  .ms-funds-log-side {
    text-align: left;
    flex-direction: row;
    align-items: baseline;
    gap: 10px
  }
}

.ms-uc-side-quota {
  margin-top: 4px;
  font-size: 11px;
  color: var(--sub2)
}

.ms-uc-side-acts {
  margin-top: 12px;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: stretch
}

.ms-uc-side-acts .ms-uc-btn {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 999px
}

.top-actions .ms-top-btn.is-apply {
  color: var(--sub)
}

.top-actions .ms-top-btn.is-apply:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim)
}

.top-actions .ms-top-btn.is-msg {
  position: relative
}

.top-actions .ms-top-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  color: #fff;
  background: #ef4444;
  pointer-events: none;
  border: 2px solid var(--panel);
}

/* 顶栏用户头像 + 会员面板 */
.ms-user-dd {
  position: relative
}

.ms-user-dd-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 0;
  box-shadow: none !important;
  transform: none !important;
}

.ms-user-dd-btn:hover,
.ms-user-dd-btn:focus,
.ms-user-dd-btn:active {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  outline: none;
}

.ms-user-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: visible;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  box-sizing: border-box;
  box-shadow: none;
}

.ms-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.ms-user-avatar.is-lg {
  width: 48px;
  height: 48px;
  flex: 0 0 auto
}

.ms-user-badge {
  position: absolute;
  z-index: 2;
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .02em;
  color: #fff;
  border: 2px solid var(--panel);
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .28);
}

.ms-user-badge.is-vip {
  right: -4px;
  bottom: -3px;
  background: linear-gradient(135deg, #5b8cff, var(--accent));
}

.ms-user-badge.is-singer {
  left: -4px;
  bottom: -3px;
  background: linear-gradient(135deg, #ffb347, #ff7a45);
  min-width: 16px;
  padding: 0;
}

.ms-user-badge.is-singer.is-solo {
  left: auto;
  right: -4px
}

.ms-user-badge.is-singer i {
  font-size: 10px;
  line-height: 1
}

.ms-user-avatar.is-lg .ms-user-badge {
  min-width: 22px;
  height: 18px;
  font-size: 10px
}

.ms-user-dd-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  /* 略宽于右栏，给「今日已签」+ M币留足一行空间 */
  width: max(var(--col-right-w, 320px), 340px);
  max-width: min(320px, calc(100vw - 24px));
  padding: 0 0 12px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transform-origin: top right;
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
  /* 勿用 overflow:hidden：会把 flex 子项 min-width 算成 0，截断「今日已签」 */
  overflow: visible;
  z-index: 80;
  box-sizing: border-box;
}

.ms-user-dd.open .ms-user-dd-menu,
.ms-user-dd-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.ms-user-dd-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 16px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.ms-user-dd-head:hover {
  background: var(--panel2)
}

.ms-user-dd-head>.ms-user-avatar {
  text-decoration: none;
  color: inherit;
  flex-shrink: 0
}

.ms-user-who {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: visible
}

.ms-user-name-link {
  text-decoration: none;
  color: inherit;
  min-width: 0
}

.ms-user-who strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 面板内标签：纵向排列，避免 button 在 flex 行内被挤窄（button 会强制裁切内容） */
.ms-user-dd-head .ms-user-meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.ms-user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
  overflow: visible
}

.ms-user-meta>* {
  flex: 0 0 auto;
  max-width: none
}

.ms-user-tag,
.ms-user-gold {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  background: var(--panel2);
  color: var(--sub);
  border: 0;
  box-sizing: border-box;
  line-height: 1;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: visible;
}

button.ms-user-tag {
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

/* 签到：改用 span[role=button] 避免原生 button 裁切；仍兼容旧 button 节点 */
.ms-user-tag.ms-user-signin {
  color: #fff !important;
  border: 0 !important;
  background: linear-gradient(135deg, #5b8cff, var(--accent)) !important;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px !important;
  font-size: 10px;
  font-weight: 500;
  gap: 2px;
  box-shadow: none;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  min-width: max-content !important;
  width: max-content !important;
  max-width: none !important;
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

.ms-user-tag.ms-user-signin span {
  display: inline !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  flex: 0 0 auto;
}

.ms-user-tag.ms-user-signin.is-signed {
  opacity: 1;
  background: linear-gradient(135deg, #5b8cff, var(--accent)) !important;
  color: #fff !important;
}

.ms-user-tag.ms-user-signin i {
  color: #fff !important;
  font-size: 10px;
  line-height: 1;
  flex-shrink: 0
}

.ms-user-tag.is-singer {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #ffb347, #ff7a45)
}

.ms-user-tag i,
.ms-user-gold i {
  font-size: 10px !important;
}

.ms-user-gold {
  color: var(--amber, #f5c518)
}

.ms-user-go {
  color: var(--sub2);
  font-size: 18px;
  flex: 0 0 auto;
  text-decoration: none;
  display: grid;
  place-items: center;
  line-height: 1;
}

.ms-user-dd-head:hover .ms-user-go {
  color: var(--accent)
}

.ms-user-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 12px 4px;
}

.ms-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.ms-user-chip i {
  font-size: 16px;
  color: var(--sub2)
}

.ms-user-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim)
}

.ms-user-chip:hover i {
  color: var(--accent)
}

.ms-user-actions {
  padding: 8px 12px 0
}

.ms-user-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.ms-user-action.is-logout {
  color: #ef4444;
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .18)
}

.ms-user-action.is-logout:hover {
  background: rgba(239, 68, 68, .14)
}

.ms-uc-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  color: #fff;
  background: #ef4444;
  vertical-align: middle;
}

.ms-uc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: #ef4444;
  vertical-align: middle;
}

.ms-uc-msg-card .ms-uc-card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.ms-uc-msg-card .ms-uc-card-title svg {
  width: 18px;
  height: 18px;
  color: var(--accent)
}

.ms-uc-overview .ms-uc-signin-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%),
    var(--panel2);
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
}

.ms-uc-overview .ms-uc-signin-body.is-signed {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%),
    var(--panel2);
}

.ms-uc-signin-main {
  min-width: 0
}

.ms-uc-signin-main em {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--sub2);
  margin-bottom: 6px;
}

.ms-uc-signin-main strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}

.ms-uc-signin-main strong i {
  font-style: normal;
  color: var(--accent)
}

.ms-uc-signin-meta {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.45
}

.ms-uc-signin-acts {
  margin-top: auto;
  display: flex;
  gap: 8px
}

.ms-uc-signin-acts .ms-uc-btn {
  min-width: 100px;
  height: 34px;
  padding: 0 14px;
  font-size: 12px;
  border-radius: 999px
}

.ms-uc-msg-list {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.ms-uc-msg-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel2);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, background .15s;
}

.ms-uc-msg-item:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line))
}

.ms-uc-msg-item.is-unread {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--panel2));
}

.ms-uc-msg-main {
  min-width: 0;
  flex: 1
}

.ms-uc-msg-main strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}

.ms-uc-msg-item.is-unread strong {
  color: var(--accent)
}

.ms-uc-msg-main span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-uc-msg-item em {
  flex-shrink: 0;
  font-style: normal;
  font-size: 11px;
  color: var(--sub2);
  padding-top: 2px;
}

@media (max-width:720px) {
  .ms-uc-overview .ms-uc-signin-body {
    min-height: 0
  }

  .ms-uc-signin-acts .ms-uc-btn {
    width: 100%
  }
}

.ms-uc-nav {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.ms-uc-nav-gap {
  height: 10px
}

/* PC 始终展示全部入口；展开按钮仅手机端显示 */
.ms-uc-nav-item.is-more {
  display: none !important
}

.ms-uc-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  text-align: left;
  color: var(--sub);
  font-size: 14px;
  font-weight: 600;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.ms-uc-nav-item .ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--panel2);
  color: var(--sub2);
}

.ms-uc-nav-item .ico svg {
  width: 16px;
  height: 16px
}

.ms-uc-nav-item .ico i {
  font-size: 16px;
  line-height: 1
}

.ms-uc-nav-item:hover {
  color: var(--text);
  background: var(--panel2)
}

.ms-uc-nav-item:hover .ico {
  color: var(--accent);
  background: var(--accent-dim)
}

.ms-uc-nav-item.is-on {
  color: var(--accent);
  background: var(--accent-dim);
  font-weight: 800;
}

.ms-uc-nav-item.is-on .ico {
  background: var(--accent-soft);
  color: var(--accent)
}

.ms-uc-nav-item.is-logout:hover {
  color: #ff5c8a;
  background: rgba(255, 92, 138, .1)
}

.ms-uc-nav-item.is-logout:hover .ico {
  color: #ff5c8a;
  background: rgba(255, 92, 138, .12)
}

.ms-uc-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0
}

.ms-uc-panel {
  display: none
}

.ms-uc-panel.is-on {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.ms-uc-card {
  background: var(--panel);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 8px 8px 20px 0 rgba(55, 99, 170, .05);
}

.ms-uc-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ms-uc-card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.ms-uc-card-title svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent)
}

.ms-uc-card-title i[class^="ri-"] {
  font-size: 18px;
  line-height: 1;
  color: var(--accent)
}

.ms-uc-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.ms-uc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.ms-uc-chip svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent)
}

.ms-uc-chip.muted {
  color: var(--sub)
}

.ms-uc-chip:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.ms-uc-profile {
  display: flex;
  gap: 18px;
  align-items: center
}

.ms-uc-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 0 0 4px var(--accent-dim), 0 12px 28px var(--accent-soft);
}

.ms-uc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.ms-uc-profile-body {
  min-width: 0;
  flex: 1
}

.ms-uc-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.ms-uc-name-row h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900
}

.ms-uc-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.ms-uc-badge.ghost {
  background: var(--panel2);
  color: var(--sub);
  border: 1px solid var(--line)
}

.ms-uc-balance {
  margin-top: 8px;
  color: var(--sub);
  font-size: 14px
}

.ms-uc-balance .coin {
  color: var(--amber);
  margin-right: 4px
}

.ms-uc-balance b {
  color: var(--text);
  font-weight: 800
}

.ms-uc-balance .sep {
  margin: 0 8px;
  color: var(--sub2)
}

.ms-uc-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px
}

.ms-uc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.ms-uc-btn.outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent
}

.ms-uc-btn.soft {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent-2);
  background: var(--accent-dim)
}

.ms-uc-btn.solid {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  box-shadow: 0 8px 18px var(--accent-soft)
}

.ms-uc-btn:hover {
  filter: brightness(1.05)
}

/* ???????verify ?? member_home_extra? */
.ms-uc-verify-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  padding: 16px 18px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  transition: border-color .15s, background .15s, transform .15s;
}

.ms-uc-verify-card:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-1px)
}

.ms-uc-verify-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 22px;
}

.ms-uc-verify-body {
  min-width: 0;
  flex: 1
}

.ms-uc-verify-body strong {
  display: inline;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-right: 8px
}

.ms-uc-verify-status {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

.ms-uc-verify-status.is-ok {
  background: var(--accent-dim);
  color: var(--accent)
}

.ms-uc-verify-status.is-warn {
  background: rgba(255, 176, 32, .16);
  color: var(--amber, #ffb020)
}

.ms-uc-verify-body p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.45
}

.ms-uc-verify-cta {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap
}

.ms-uc-verify-card.is-passed .ms-uc-verify-ico {
  background: var(--accent-soft)
}

.ms-apply-verify {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel2);
}

.ms-apply-verify-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0
}

.ms-apply-verify-main i {
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0
}

.ms-apply-verify-main strong {
  display: block;
  font-size: 14px;
  color: var(--text)
}

.ms-apply-verify-main p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--sub)
}

.ms-apply-verify.is-ok {
  border-color: var(--accent);
  background: var(--accent-dim)
}

.ms-apply-verify.is-warn {
  border-color: rgba(255, 176, 32, .45);
  background: rgba(255, 176, 32, .1)
}

.ms-apply-locked {
  padding: 36px 12px;
  text-align: center;
  color: var(--sub)
}

.ms-apply-locked p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6
}

.ms-apply-locked-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px
}

/* 音乐站歌手认证页 */
.ms-apply {
  gap: 16px
}

.ms-apply-hero {
  position: relative;
  overflow: hidden
}

.ms-apply-hero::before {
  content: "";
  position: absolute;
  inset: auto -18% -42% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.ms-apply-lead {
  margin: 0 0 14px;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.55;
  position: relative
}

.ms-apply-chip-warn {
  color: var(--amber, #ffb020) !important;
  border-color: rgba(255, 176, 32, .35) !important;
  background: rgba(255, 176, 32, .12) !important
}

.ms-apply-verify-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel2);
  text-decoration: none;
  transition: border-color .15s, transform .15s, background .15s;
}

.ms-apply-verify-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px)
}

.ms-apply-verify-card.is-ok {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: var(--accent-dim)
}

.ms-apply-verify-card.is-warn {
  border-color: rgba(255, 176, 32, .4);
  background: rgba(255, 176, 32, .1)
}

.ms-apply-verify-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--panel);
  color: var(--accent);
  font-size: 20px;
  border: 1px solid var(--line);
}

.ms-apply-verify-body {
  min-width: 0;
  flex: 1
}

.ms-apply-verify-body strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-right: 8px
}

.ms-apply-verify-body em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px
}

.ms-apply-verify-body em.is-ok {
  background: var(--accent-soft);
  color: var(--accent)
}

.ms-apply-verify-body em.is-warn {
  background: rgba(255, 176, 32, .18);
  color: var(--amber, #ffb020)
}

.ms-apply-verify-body p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.45
}

.ms-apply-verify-cta {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap
}

.ms-apply-status {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel2);
}

.ms-apply-status-main strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text)
}

.ms-apply-status-main span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.5
}

.ms-apply-status.status-0 {
  border-color: rgba(255, 176, 32, .35);
  background: rgba(255, 176, 32, .1)
}

.ms-apply-status.status-1 {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: var(--accent-dim)
}

.ms-apply-status.status-2 {
  border-color: rgba(255, 92, 138, .35);
  background: rgba(255, 92, 138, .1)
}

.ms-apply-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start
}

.ms-apply-form {
  display: grid;
  gap: 12px
}

.ms-apply-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px
}

.ms-apply-field {
  display: grid;
  gap: 6px;
  min-width: 0
}

.ms-apply-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--sub)
}

.ms-apply-field label i {
  font-style: normal;
  color: #ff5c8a;
  margin-left: 2px
}

.ms-apply-field input,
.ms-apply-field select,
.ms-apply-field textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.ms-apply-field textarea {
  height: auto;
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical
}

.ms-apply-field input:focus,
.ms-apply-field select:focus,
.ms-apply-field textarea:focus {
  border-color: var(--accent)
}

.ms-apply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px
}

.ms-apply-actions .ms-uc-btn {
  height: 40px;
  border-radius: 10px;
  min-width: 120px;
  padding: 0 18px
}

.ms-apply-avatar-row {
  display: flex;
  align-items: center;
  gap: 10px
}

.ms-apply-avatar-row input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.ms-apply-avatar-row input:focus {
  border-color: var(--accent)
}

.ms-apply-avatar-pick {
  flex-shrink: 0;
  height: 40px;
  border-radius: 10px;
  min-width: 110px;
  padding: 0 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ms-apply-avatar-tip {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.4
}

@media (max-width:860px) {
  .ms-apply-avatar-row {
    flex-direction: column;
    align-items: stretch
  }

  .ms-apply-avatar-pick {
    width: 100%
  }
}

.ms-apply-tips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.ms-apply-tips li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel2);
}

.ms-apply-tips i {
  font-size: 18px;
  color: var(--accent);
  line-height: 1;
  margin-top: 2px
}

.ms-apply-tips strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text)
}

.ms-apply-tips span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.45
}

.ms-uc-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ms-uc-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px;
}

.ms-uc-stat .ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent);
}

.ms-uc-stat .ico svg {
  width: 16px;
  height: 16px
}

.ms-uc-stat em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--sub2);
  margin-bottom: 2px
}

.ms-uc-stat b {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  word-break: break-all
}

.ms-uc-overview-card .ms-uc-card-hd {
  margin-bottom: 12px
}

.ms-uc-overview {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 2fr);
  gap: 12px;
  align-items: stretch;
}

.ms-uc-overview.is-solo {
  grid-template-columns: 1fr
}

.ms-uc-vip-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(91, 140, 255, .14), transparent 55%),
    var(--panel2);
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
}

.ms-uc-vip-body.is-vip {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    var(--panel2);
}

.ms-uc-vip-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  min-width: 42px;
  height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(135deg, #5b8cff, var(--accent));
  box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
  pointer-events: none;
}

.ms-uc-vip-body:not(.is-vip) .ms-uc-vip-badge {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  opacity: .85;
}

.ms-uc-vip-main {
  min-width: 0;
  padding-right: 52px
}

.ms-uc-vip-main em {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--sub2);
  margin-bottom: 6px;
}

.ms-uc-vip-main strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}

.ms-uc-vip-body.is-vip .ms-uc-vip-main strong {
  color: var(--accent)
}

.ms-uc-vip-line,
.ms-uc-vip-quota {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.45;
}

.ms-uc-vip-quota {
  color: var(--sub2)
}

.ms-uc-vip-acts {
  margin-top: auto;
  display: flex;
  gap: 8px
}

.ms-uc-vip-acts .ms-uc-btn {
  min-width: 100px;
  height: 34px;
  padding: 0 14px;
  font-size: 12px;
  border-radius: 999px
}

.ms-uc-overview-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
    var(--panel2);
}

.ms-uc-overview-hero .ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent);
}

.ms-uc-overview-hero .ico svg {
  width: 20px;
  height: 20px
}

.ms-uc-overview-hero .txt {
  min-width: 0
}

.ms-uc-overview-hero em {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--sub2);
  margin-bottom: 6px;
}

.ms-uc-overview-hero b {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.ms-uc-overview-hero b i {
  font-style: normal
}

.ms-uc-overview-hero b small {
  font-size: 13px;
  font-weight: 700;
  color: var(--sub)
}

.ms-uc-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.ms-uc-overview-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel2);
}

.ms-uc-overview-item .ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent);
}

.ms-uc-overview-item .ico svg {
  width: 17px;
  height: 17px
}

.ms-uc-overview-item .txt {
  min-width: 0;
  flex: 1
}

.ms-uc-overview-item em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--sub2);
  margin-bottom: 5px;
  font-weight: 600;
}

.ms-uc-overview-item b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  word-break: break-all;
}

.ms-uc-link {
  color: var(--accent);
  font-weight: 800
}

.ms-uc-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px
}

/* PC：标题左、TAB 右；空间不够或窄屏时 TAB 换行 */
.ms-uc-follow-card .ms-uc-card-hd {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.ms-uc-follow-card .ms-uc-card-title {
  flex: 0 0 auto;
  white-space: nowrap;
}

.ms-uc-follow-card .ms-uc-settings-tabs {
  margin-left: auto;
  flex: 0 0 auto;
}

@media (max-width:860px) {
  .ms-uc-follow-card .ms-uc-settings-tabs {
    margin-left: 0;
    flex: 1 1 100%;
    width: 100%;
    display: flex;
  }

  .ms-uc-follow-card .ms-uc-settings-tab {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}

.ms-uc-follow-pane {
  display: none
}

.ms-uc-follow-pane.is-on {
  display: block
}

.ms-uc-follow-grid {
  padding: 2px 0 0
}

.ms-uc-follow-grid .ms-follow-card-item {
  text-decoration: none;
  color: inherit
}

.ms-uc-more {
  font-size: 12px;
  color: var(--sub2);
  font-weight: 700
}

.ms-uc-more:hover,
.ms-uc-more.accent {
  color: var(--accent)
}

.ms-uc-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.ms-uc-mini-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.ms-uc-mini-list a:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.ms-uc-mini-list .t {
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.ms-uc-mini-list .m {
  font-size: 12px;
  color: var(--sub2);
  flex-shrink: 0
}

.ms-uc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 140px;
  color: var(--sub2);
  text-align: center;
  padding: 18px;
}

.ms-uc-empty.tall {
  min-height: 220px
}

.ms-uc-empty svg {
  width: 48px;
  height: 48px;
  stroke: var(--accent);
  opacity: .45
}

.ms-uc-empty p {
  margin: 0;
  font-size: 13px
}

.ms-uc-table-wrap {
  overflow: auto
}

.ms-uc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px
}

.ms-uc-table th,
.ms-uc-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}

.ms-uc-table th {
  color: var(--sub2);
  font-weight: 600
}

.ms-uc-table td {
  color: var(--text)
}

.ms-uc-table .name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px
}

.ms-uc-table .name .note {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.ms-uc-table .pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--sub);
  font-size: 12px;
}

.ms-uc-table .ops {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.ms-uc-table .op {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.ms-uc-table .op.play {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent)
}

.ms-uc-table .op.fav {
  color: #ffb347;
  background: rgba(255, 179, 71, .12)
}

.ms-uc-table .op.burn {
  color: #a78bfa;
  background: rgba(167, 139, 250, .12)
}

.ms-uc-table .op.down {
  color: #60a5fa;
  background: rgba(96, 165, 250, .12)
}

.ms-uc-table .op:hover {
  filter: brightness(1.08)
}

.ms-uc-table .op:disabled {
  opacity: .45;
  cursor: not-allowed
}

.ms-uc-form {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.ms-uc-form .row {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.ms-uc-form .row[hidden] {
  display: none !important
}

.ms-uc-form label {
  font-size: 12px;
  color: var(--sub);
  font-weight: 600
}

.ms-uc-form input,
.ms-uc-form select,
.ms-uc-form textarea {
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  outline: none;
  box-shadow: none;
}

.ms-uc-form input:focus,
.ms-uc-form select:focus,
.ms-uc-form textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: none;
}

.ms-uc-form textarea {
  height: auto;
  min-height: 84px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.5
}

.ms-uc-form select {
  appearance: none;
  cursor: pointer
}

.ms-uc-form input:disabled {
  opacity: .72;
  cursor: not-allowed
}

.ms-uc-form label .req {
  color: var(--accent);
  font-style: normal;
  margin-left: 2px
}

.ms-uc-form>.ms-uc-btn {
  height: 42px;
  border-radius: 10px;
  width: 100%;
  align-self: stretch;
}

.ms-uc-pl-grid {
  padding: 4px 0 0;
  gap: 16px;
  grid-template-columns: repeat(5, minmax(0, 1fr))
}

.ms-uc-pl-grid .pl-card,
.ms-uc-pl-grid .ms-pl-card {
  text-decoration: none;
  color: inherit
}

.ms-pl-card {
  display: flex;
  flex-direction: column;
  min-width: 0
}

.ms-pl-cover-link {
  display: block;
  color: inherit;
  text-decoration: none
}

.ms-pl-cover-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--accent);
  background: var(--panel2);
}

.ms-pl-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  color: #fff;
}

.ms-pl-badge.pending {
  background: rgba(255, 176, 32, .92)
}

.ms-pl-badge.ok {
  background: color-mix(in srgb, var(--accent) 92%, transparent)
}

.ms-pl-badge.reject {
  background: rgba(255, 92, 138, .92)
}

.ms-pl-reject {
  margin: 6px 0 0;
  font-size: 11px;
  color: #ff5c8a;
  line-height: 1.4
}

.ms-pl-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px
}

.ms-pl-act {
  flex: 1;
  height: 30px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.ms-pl-act:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.ms-pl-act.danger:hover {
  border-color: #ff5c8a;
  color: #ff5c8a
}

.ms-pl-act:disabled {
  opacity: .5;
  cursor: not-allowed
}

.ms-uc-pl-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.ms-uc-pl-meta .title {
  min-width: 0;
  flex: 1;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-uc-pl-meta .count {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 12px;
  color: var(--sub2);
  font-weight: 600;
  white-space: nowrap;
}

.ms-uc-modal[hidden] {
  display: none !important
}

.ms-uc-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ms-uc-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .48)
}

.ms-uc-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  padding: 20px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}

.ms-uc-modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ms-uc-modal-hd strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--text)
}

.ms-uc-modal-x {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--sub2);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.ms-uc-modal-x:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: scale(1.08);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.ms-uc-modal-x:active {
  transform: scale(.94)
}

.ms-uc-modal-x i {
  font-size: 16px;
  line-height: 1
}

.ms-pl-edit-form .ms-pl-edit-save,
.ms-pl-create-form .ms-pl-edit-save {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  padding: 0 18px;
  margin-top: 20px;
}

[data-pl-pane].ms-uc-settings-pane.is-on {
  display: block
}

[data-earn-pane].ms-uc-settings-pane.is-on {
  display: block
}

.ms-earn-block {
  margin-bottom: 22px
}

.ms-earn-block:last-child {
  margin-bottom: 0
}

.ms-earn-block-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}

.ms-earn-block-hd strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--text)
}

.ms-earn-subtabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: var(--panel2);
  border: 1px solid var(--line);
  margin: 4px 0 14px;
}

.ms-earn-subtab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--sub);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
}

.ms-earn-subtab.is-on {
  background: var(--accent, #7c5cff);
  color: #fff
}

.ms-earn-subpane {
  display: none
}

.ms-earn-subpane.is-on {
  display: block
}

.ms-earn-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.ms-earn-stat {
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel2);
}

.ms-earn-stat span {
  display: block;
  font-size: 12px;
  color: var(--sub);
  font-weight: 600
}

.ms-earn-stat b {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  font-variant-numeric: tabular-nums
}

.ms-earn-withdraw {
  margin-bottom: 18px
}

.ms-earn-withdraw-row {
  display: flex;
  align-items: center;
  gap: 10px
}

.ms-earn-withdraw-row input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font: inherit;
}

.ms-earn-withdraw-row .ms-uc-btn {
  height: 42px;
  border-radius: 10px;
  padding: 0 18px;
  flex-shrink: 0
}

.ms-pay-config-form .tip {
  margin-top: 2px
}

@media (max-width:860px) {
  .ms-earn-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .ms-earn-withdraw-row {
    flex-wrap: wrap
  }

  .ms-earn-withdraw-row .ms-uc-btn {
    width: 100%
  }
}

@media (max-width:1100px) {
  .ms-uc-pl-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr))
  }
}

@media (max-width:860px) {
  .ms-uc-pl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
  }
}

@media (max-width:520px) {
  .ms-uc-pl-grid {
    grid-template-columns: 1fr
  }
}

.ms-uc-form .tip {
  font-size: 12px;
  color: var(--sub2);
  margin: 0
}

.ms-uc-card-desc {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--sub2);
  font-weight: 500
}

.ms-uc-settings-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ms-uc-settings-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: var(--panel2);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.ms-uc-settings-tab {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--sub);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  line-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}

.ms-uc-settings-tab:hover {
  color: var(--text)
}

.ms-uc-settings-tab.is-on {
  background: var(--accent);
  color: #fff
}

.ms-uc-settings-tab em {
  font-style: normal;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .18);
  color: inherit;
  font-size: 11px;
  font-weight: 800;
}

.ms-uc-settings-tab:not(.is-on) em {
  background: var(--panel);
  color: var(--sub)
}

.ms-uc-settings-pane {
  display: none
}

.ms-uc-settings-pane.is-on {
  display: flex
}

.ms-uc-verified {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.ms-uc-unverified {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--panel2);
  color: var(--sub2);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--line);
}

.ms-uc-bind-row,
.ms-uc-code-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.ms-uc-bind-row input,
.ms-uc-code-row input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto
}

.ms-uc-form input.is-locked {
  color: var(--sub);
  cursor: default;
  background: color-mix(in srgb, var(--panel2) 85%, var(--line));
}

.ms-uc-bind-row .ms-uc-btn,
.ms-uc-code-row .ms-uc-btn {
  flex: 0 0 auto;
  align-self: stretch;
  box-sizing: border-box;
  min-width: 5.5em;
  height: 42px;
  padding: 0 14px;
  margin: 0;
  white-space: nowrap;
  border-radius: 10px;
  font-size: 13px;
}

.ms-uc-avatar-panel {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap
}

.ms-uc-avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.ms-uc-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.ms-uc-avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0
}

.ms-uc-avatar-pick {
  cursor: pointer
}

.ms-uc-btn-sm {
  height: 30px;
  padding: 0 12px;
  font-size: 12px
}

.ms-uc-btn.danger {
  background: #ff4d6d;
  color: #fff;
  border: none;
  box-shadow: 0 8px 18px rgba(255, 77, 109, .28);
}

.ms-uc-btn.danger:hover {
  filter: brightness(1.05)
}

.ms-uc-btn.danger:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none
}

.ms-uc-oauth-bind {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  width: 100%
}

.ms-uc-oauth-bind-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 12px
}

.ms-uc-oauth-bind-head strong {
  font-size: 14px;
  font-weight: 750;
  color: var(--text)
}

.ms-uc-oauth-bind-head span {
  font-size: 12px;
  color: var(--sub2);
  line-height: 1.45
}

.ms-uc-oauth-bind-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.ms-uc-oauth-bind-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel2);
}

.ms-uc-oauth-bind-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0
}

.ms-uc-oauth-bind-ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 20px;
  color: var(--accent);
}

.ms-uc-oauth-bind-ico-wechat {
  color: #07c160
}

.ms-uc-oauth-bind-ico-qq {
  color: #12b7f5
}

.ms-uc-oauth-bind-ico-alipay {
  color: #1677ff
}

.ms-uc-oauth-bind-ico-sina {
  color: #e6162d
}

.ms-uc-oauth-bind-ico-baidu {
  color: #2932e1
}

.ms-uc-oauth-bind-ico-douyin {
  color: var(--text)
}

.ms-uc-oauth-bind-ico-bilibili {
  color: #fb7299
}

.ms-uc-oauth-bind-ico-dingtalk {
  color: #0089ff
}

.ms-uc-oauth-bind-copy {
  min-width: 0
}

.ms-uc-oauth-bind-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 750;
  color: var(--text)
}

.ms-uc-oauth-bind-copy span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--sub2)
}

.ms-uc-cancel-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ms-uc-cancel-modal.is-open {
  display: flex
}

.ms-uc-cancel-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .48)
}

.ms-uc-cancel-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 24px 20px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}

.ms-uc-cancel-x {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--sub2);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.ms-uc-cancel-x:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: scale(1.08);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.ms-uc-cancel-x:active {
  transform: scale(.94)
}

.ms-uc-cancel-x i {
  font-size: 16px;
  line-height: 1
}

.ms-uc-cancel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.ms-uc-cancel-title i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 77, 109, .12);
  color: #ff4d6d;
  font-size: 17px;
}

.ms-uc-cancel-warn {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 77, 109, .08);
  margin-bottom: 16px;
}

.ms-uc-cancel-warn p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--sub)
}

.ms-uc-cancel-warn p:last-child {
  margin-bottom: 0
}

.ms-uc-cancel-warn strong {
  color: #ff4d6d;
  font-weight: 700
}

.ms-uc-cancel-channels {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.ms-uc-cancel-channel {
  position: relative;
  display: block;
  cursor: pointer
}

.ms-uc-cancel-channel input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer
}

.ms-uc-cancel-channel span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  position: relative;
  transition: border-color .15s, background .15s;
}

.ms-uc-cancel-channel span::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
}

.ms-uc-cancel-channel input:checked+span {
  border-color: var(--accent);
  background: var(--accent-dim)
}

.ms-uc-cancel-channel input:checked+span::before {
  border: 5px solid var(--accent)
}

.ms-uc-cancel-channel strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text)
}

.ms-uc-cancel-channel small {
  font-size: 12px;
  color: var(--sub2)
}

.ms-uc-cancel-code-row {
  display: flex;
  gap: 8px
}

.ms-uc-cancel-code-row input {
  flex: 1
}

.ms-uc-cancel-code-row .ms-uc-btn {
  white-space: nowrap;
  flex-shrink: 0
}

.ms-uc-cancel-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px
}

.ms-uc-cancel-actions>* {
  flex: 1
}

@media (max-width:860px) {
  .ms-uc-settings-tabs {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none
  }

  .ms-uc-settings-tabs::-webkit-scrollbar {
    display: none
  }

  .ms-uc-settings-tab {
    flex: 1 0 auto
  }

  .ms-uc-oauth-bind-item {
    flex-wrap: wrap
  }
}

.ms-uc-json {
  min-height: 80px
}

/* 我的歌曲列表 */
.ms-song-list {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.ms-song-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel2);
}

.ms-song-cover {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 20px;
  text-decoration: none;
}

.ms-song-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.ms-song-main {
  min-width: 0;
  flex: 1
}

.ms-song-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.ms-song-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none
}

.ms-song-title:hover {
  color: var(--accent)
}

.ms-song-status {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  background: var(--panel);
  color: var(--sub);
  border: 1px solid var(--line);
}

.ms-song-item.status-0 .ms-song-status {
  background: rgba(255, 176, 32, .16);
  color: var(--amber, #ffb020);
  border-color: transparent
}

.ms-song-item.status-1 .ms-song-status {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: transparent
}

.ms-song-item.status-2 .ms-song-status,
.ms-song-item.status-4 .ms-song-status {
  background: rgba(120, 140, 255, .14);
  color: #8ea0ff;
  border-color: transparent
}

.ms-song-item.status-3 .ms-song-status {
  background: rgba(255, 92, 138, .12);
  color: #ff5c8a;
  border-color: transparent
}

.ms-song-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--sub);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.ms-song-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--sub2, var(--sub))
}

.ms-song-reason {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--amber, #ffb020);
  line-height: 1.45
}

.ms-song-upload-lead {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.55
}

/* 我的专辑 */
[data-album-pane].ms-uc-settings-pane.is-on {
  display: block
}

.ms-album-list {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.ms-order-list {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.ms-order-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--panel2);
  border: 1px solid var(--line);
}

.ms-order-cover {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sub2);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.ms-order-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.ms-order-main {
  min-width: 0;
  flex: 1
}

.ms-order-no {
  margin-top: 4px;
  font-size: 12px;
  color: var(--sub2);
  font-variant-numeric: tabular-nums
}

.ms-order-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.ms-order-side strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums
}

.ms-order-item.status-ok .ms-song-status {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: transparent
}

.ms-order-item.status-pending .ms-song-status {
  background: rgba(255, 176, 32, .16);
  color: var(--amber, #ffb020);
  border-color: transparent
}

.ms-order-item.status-refund .ms-song-status {
  background: rgba(255, 92, 138, .12);
  color: #ff5c8a;
  border-color: transparent
}

.ms-order-item.status-closed .ms-song-status {
  background: rgba(120, 140, 160, .14);
  color: var(--sub);
  border-color: transparent
}

@media (max-width:640px) {
  .ms-order-item {
    flex-wrap: wrap
  }

  .ms-order-side {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between
  }
}

.ms-album-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel2);
}

.ms-album-cover {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 22px;
  text-decoration: none;
}

.ms-album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.ms-album-main {
  min-width: 0;
  flex: 1
}

.ms-album-item.status-0 .ms-song-status {
  background: rgba(255, 176, 32, .16);
  color: var(--amber, #ffb020);
  border-color: transparent
}

.ms-album-item.status-1 .ms-song-status {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: transparent
}

.ms-album-item.status-2 .ms-song-status {
  background: rgba(120, 140, 255, .14);
  color: #8ea0ff;
  border-color: transparent
}

.ms-album-item.status-3 .ms-song-status {
  background: rgba(255, 92, 138, .12);
  color: #ff5c8a;
  border-color: transparent
}

.ms-album-open-form {
  padding-top: 4px
}

.ms-album-open-form .ms-uc-btns .ms-uc-btn {
  height: 42px;
  border-radius: 10px;
  padding: 0 18px
}

.ms-album-cover-row {
  display: flex;
  align-items: center;
  gap: 10px
}

.ms-album-cover-row input {
  flex: 1;
  min-width: 0
}

.ms-album-cover-btn {
  flex-shrink: 0;
  box-sizing: border-box;
  height: 42px;
  padding: 0 14px;
  margin: 0;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  transition: background .15s, filter .15s;
}

.ms-album-cover-btn:hover {
  background: var(--accent-dim)
}

.ms-album-cover-preview {
  margin-top: 8px;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line)
}

.ms-album-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.ms-album-price-chips {
  padding-top: 2px
}

.ms-album-song-pick {
  max-height: 420px;
  overflow: auto;
  padding-right: 2px
}

.ms-album-song-item {
  cursor: pointer;
  margin: 0;
  user-select: none
}

.ms-album-song-item .ms-song-cover {
  pointer-events: none
}

.ms-album-song-item .ms-song-title {
  pointer-events: none
}

.ms-album-song-item:has(.ms-album-song-check-input:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.ms-album-song-check-input {
  width: 18px;
  height: 18px;
  margin: 0 4px 0 8px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

@media (max-width:860px) {
  .ms-album-cover-row {
    flex-wrap: wrap
  }
}

.ms-song-file-row {
  display: flex;
  align-items: center;
  gap: 10px
}

.ms-song-file-row input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.ms-song-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer
}

.ms-song-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent)
}

@media (max-width:860px) {
  .ms-song-file-row {
    flex-direction: column;
    align-items: stretch
  }
}

.ms-uc-pre {
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  background: var(--panel2);
  color: var(--sub);
  font-size: 12px;
  white-space: pre-wrap;
  overflow: auto;
}

.ms-uc-wrap.is-guest {
  display: block;
  padding-top: 48px
}

.ms-uc-guest {
  max-width: 560px;
  margin: 40px auto;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px 28px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}

.ms-uc-guest-inner {
  display: flex;
  flex-direction: column;
  align-items: center
}

.ms-uc-guest-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.ms-uc-guest h1 {
  margin: 0 0 8px;
  font-size: 24px
}

.ms-uc-guest p {
  margin: 0 0 18px;
  color: var(--sub)
}

.ms-uc-guest .ms-btn {
  min-width: 140px
}

/* 独立插件页（身份认证 / 我的邀请） */
.ms-uc-plugin .uc-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.ms-uc-plugin .uc-panel-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: var(--text)
}

.ms-uc-plugin .uc-panel-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.5
}

.ms-uc-plugin .btn,
.ms-uc-plugin .btn-primary,
.ms-uc-plugin .btn-line,
.ms-uc-plugin .btn-default {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.ms-uc-plugin .btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  box-shadow: 0 8px 18px var(--accent-soft);
}

.ms-uc-plugin .btn-line {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent)
}

.ms-uc-plugin .btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12px
}

.ms-uc-plugin .input,
.ms-uc-plugin input[type=text],
.ms-uc-plugin input[type=password],
.ms-uc-plugin input[type=number],
.ms-uc-plugin select,
.ms-uc-plugin textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.ms-uc-plugin textarea {
  height: auto;
  min-height: 88px;
  padding: 10px 12px
}

.ms-uc-plugin .empty {
  padding: 28px 8px;
  text-align: center;
  color: var(--sub);
  font-size: 13px
}

.ms-uc-plugin .verify-body,
.ms-uc-plugin .invite-hero-body {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.ms-uc-plugin .verify-card,
.ms-uc-plugin .invite-stat,
.ms-uc-plugin .invite-paid-box,
.ms-uc-plugin .invite-link-box,
.ms-uc-plugin .invite-tip-item,
.ms-uc-plugin .invite-code-row,
.ms-uc-plugin .invite-list-item,
.ms-uc-plugin .invite-rank-item {
  border-color: var(--line) !important;
  background: var(--panel2) !important;
  color: var(--text);
}

.ms-uc-plugin .invite-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px
}

.ms-invite-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--panel2);
  border: 1px solid var(--line);
}

/* 音乐站独立身份认证页 */
.ms-verify {
  gap: 16px
}

.ms-verify-hero {
  position: relative;
  overflow: hidden
}

.ms-verify-hero::before {
  content: "";
  position: absolute;
  inset: auto -18% -42% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.ms-verify-lead {
  margin: 0 0 16px;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.55;
  position: relative
}

.ms-verify-tabs.uc-settings-tabs,
.ms-verify .verify-type-tabs.uc-settings-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border-radius: 12px;
  background: var(--panel2);
  border: 1px solid var(--line);
  max-width: 100%;
}

.ms-verify .verify-type-tabs .uc-settings-tab {
  min-height: 32px;
  padding: 6px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--sub);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ms-verify .verify-type-tabs .uc-settings-tab:hover {
  color: var(--text)
}

.ms-verify .verify-type-tabs .uc-settings-tab.on {
  background: var(--accent);
  color: #fff;
}

.ms-verify-body {
  position: relative
}

.ms-verify-form {
  margin: 0;
  padding: 0;
  border: 0;
}

.ms-verify-tip,
.ms-verify-note {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.6;
}

.ms-verify-fields .verify-field.field {
  margin: 0 0 12px
}

.ms-verify-fields .verify-field.field>label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--sub);
}

.ms-verify-fields .input,
.ms-verify-fields textarea.input,
.ms-verify-fields input[type=text],
.ms-verify-fields input[type=number],
.ms-verify-fields select,
.ms-verify-fields textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.ms-verify-fields textarea,
.ms-verify-fields textarea.input {
  height: auto;
  min-height: 88px;
  padding: 10px 12px
}

.ms-verify-fields .input:focus,
.ms-verify-fields textarea:focus {
  border-color: var(--accent)
}

.ms-verify-fields .verify-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center
}

.ms-verify-fields .verify-inline .input {
  flex: 1;
  min-width: 180px
}

.ms-verify-fields .verify-prove {
  margin: 8px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--panel2);
  border: 1px dashed var(--line);
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.ms-verify-fields .verify-token {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--panel);
  color: var(--accent);
  border: 1px solid var(--line);
  font-family: ui-monospace, Consolas, monospace;
  word-break: break-all;
}

.ms-verify-actions {
  margin-top: 8px
}

.ms-verify-actions .ms-uc-btn {
  height: 40px;
  border-radius: 10px;
  min-width: 120px;
  padding: 0 18px
}

.ms-verify-flash {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.ms-verify-flash.ok {
  background: var(--accent-dim);
  color: var(--accent)
}

.ms-verify-flash.err {
  background: rgba(255, 92, 138, .12);
  color: #ff5c8a
}

.ms-verify-list {
  display: grid;
  gap: 10px
}

.ms-verify-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel2);
}

.ms-verify-card .verify-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px
}

.ms-verify-card .verify-card-top strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--text)
}

.ms-verify-card .verify-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.4;
  background: var(--panel);
  color: var(--sub);
  font-weight: 700;
  border: 1px solid var(--line);
}

.ms-verify-card.status-0 .verify-status:not(.verify-flag-btn) {
  background: rgba(255, 176, 32, .16);
  color: var(--amber, #ffb020);
  border-color: transparent
}

.ms-verify-card.status-1 .verify-status {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: transparent
}

.ms-verify-card.status-2 .verify-status:not(.verify-flag-btn),
.ms-verify-card.status-3 .verify-status:not(.verify-flag-btn),
.ms-verify-card.status-4 .verify-status:not(.verify-flag-btn) {
  background: rgba(255, 92, 138, .12);
  color: #ff5c8a;
  border-color: transparent
}

.ms-verify-card button.verify-flag-btn {
  cursor: pointer;
  background: var(--accent-dim);
  color: var(--accent);
  border-color: transparent;
}

.ms-verify-card .verify-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--sub)
}

.ms-verify-card .verify-reason,
.ms-verify-card .verify-appeal {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--amber, #ffb020)
}

.ms-verify-empty {
  padding: 28px 8px;
  text-align: center;
  color: var(--sub);
  font-size: 13px
}

.ms-verify-face-dialog {
  background: var(--panel) !important;
  color: var(--text) !important;
  border: 1px solid var(--line);
}

.ms-verify-face-dialog .verify-face-tip,
.ms-verify-face-dialog #verify-face-status {
  color: var(--sub)
}

.ms-verify-face-dialog .verify-face-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.ms-verify-face-dialog .ms-uc-btn {
  height: 36px;
  border-radius: 10px;
  min-width: 96px
}

.ms-verify-face-dialog .verify-face-close,
.verify-face-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--sub2);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.ms-verify-face-dialog .verify-face-close:hover,
.verify-face-close:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: scale(1.08);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.ms-verify-face-dialog .verify-face-close:active,
.verify-face-close:active {
  transform: scale(.94)
}

.ms-verify-privacy {
  margin-top: 0
}

.ms-verify-privacy-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 15px;
}

.ms-verify-privacy-hd i {
  font-size: 20px;
  line-height: 1
}

.ms-verify-privacy-hd strong {
  font-weight: 800;
  color: var(--accent)
}

.ms-verify-privacy-body p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--sub);
  font-weight: 500;
}

.ms-verify-privacy-body ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px
}

.ms-verify-privacy-body li {
  font-size: 13px;
  line-height: 1.65;
  color: var(--sub);
  font-weight: 500
}

.ms-verify-privacy-body li b {
  color: var(--text);
  font-weight: 700;
  margin-right: 4px
}

.ms-verify-privacy-foot {
  margin: 14px 0 0 !important;
  color: var(--accent) !important;
  font-weight: 700 !important
}

/* 音乐站独立邀请页 */
.ms-invite {
  gap: 16px
}

.ms-invite-hero {
  position: relative;
  overflow: hidden
}

.ms-invite-hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.ms-invite-lead {
  margin: 0 0 16px;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.55;
  position: relative
}

.ms-invite-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
  position: relative;
}

.ms-invite-stat {
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel2);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  transition: border-color .15s, transform .15s;
}

.ms-invite-stat:hover {
  border-color: var(--accent);
  transform: translateY(-1px)
}

.ms-invite-stat em {
  font-style: normal;
  font-size: 12px;
  color: var(--sub);
  font-weight: 600
}

.ms-invite-stat b {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
  font-variant-numeric: tabular-nums
}

.ms-invite-share {
  position: relative;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--accent-dim), var(--panel2));
}

.ms-invite-share label,
.ms-invite-share-hd strong {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.ms-invite-share-hd span {
  display: block;
  margin: -2px 0 8px;
  font-size: 12px;
  color: var(--sub)
}

.ms-invite-share-tip {
  margin: 0;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.5
}

.ms-invite-share-row {
  display: flex;
  gap: 10px;
  align-items: center
}

.ms-invite-share-row input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.ms-invite-share-row input:focus {
  border-color: var(--accent)
}

.ms-invite-share-row .ms-uc-btn {
  flex-shrink: 0;
  min-width: 96px;
  height: 40px;
  border-radius: 10px;
  padding: 0 16px;
}

.ms-invite-share-row .ms-uc-btn.is-copied {
  filter: brightness(1.08)
}

.ms-invite-rewards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  position: relative
}

.ms-invite-reward {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel2);
}

.ms-invite-reward i {
  font-size: 20px;
  color: var(--accent);
  line-height: 1;
  margin-top: 1px
}

.ms-invite-reward strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text)
}

.ms-invite-reward span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.45
}

.ms-invite-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px
}

.ms-invite-list,
.ms-invite-codes,
.ms-invite-rank {
  display: flex;
  flex-direction: column;
  gap: 0
}

.ms-invite-row,
.ms-invite-code,
.ms-invite-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
}

.ms-invite-row:last-child,
.ms-invite-code:last-child,
.ms-invite-rank-item:last-child {
  border-bottom: 0
}

.ms-invite-row-main {
  flex: 1;
  min-width: 0
}

.ms-invite-row-main strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.ms-invite-row-main span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--sub)
}

.ms-invite-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0
}

.ms-invite-row-meta em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent)
}

.ms-invite-row-meta em.is-gold {
  color: var(--amber, #ffb020)
}

.ms-invite-row-meta em.is-mute {
  color: var(--sub);
  font-weight: 600
}

.ms-invite-code-main {
  flex: 1;
  min-width: 0
}

.ms-invite-code-main strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ms-invite-code-main span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--sub)
}

.ms-invite-code.is-used {
  opacity: .55
}

.ms-invite-code-used {
  font-size: 12px;
  color: var(--sub);
  font-weight: 700
}

.ms-invite-rank {
  list-style: none;
  margin: 0;
  padding: 0
}

.ms-invite-rank-no {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  background: var(--panel2);
  color: var(--sub);
  border: 1px solid var(--line);
}

.ms-invite-rank-no.is-top {
  background: var(--accent);
  color: #fff;
  border-color: transparent
}

.ms-invite-rank-count {
  font-size: 12px;
  font-weight: 800;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0
}

.ms-invite-avatar.sm {
  width: 36px;
  height: 36px
}

.ms-invite-virtual {
  display: inline-flex;
  align-items: center;
  height: 18px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  background: var(--accent-dim);
  color: var(--accent);
}

.ms-invite-empty {
  padding: 28px 8px;
  text-align: center;
  color: var(--sub);
  font-size: 13px
}

@media (max-width:1100px) {
  .ms-uc-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .ms-uc-overview {
    grid-template-columns: 1fr
  }

  .ms-uc-overview-main {
    grid-template-columns: 1fr
  }

  .ms-uc-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .ms-uc-grid3 {
    grid-template-columns: 1fr
  }

  .ms-invite-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .ms-apply-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width:860px) {
  .ms-uc-wrap {
    grid-template-columns: 1fr;
    padding: 16px 14px 40px
  }

  .ms-uc-side {
    position: static
  }

  /* 手机端：图标网格（上圆标下文字），参考会员中心宫格 */
  .ms-uc-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px 4px;
    padding: 6px 2px 10px;
  }

  .ms-uc-nav-gap {
    display: none
  }

  .ms-uc-nav-item {
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: auto;
    min-width: 0;
    padding: 4px 2px;
    border-radius: 12px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--sub);
    background: transparent;
  }

  .ms-uc-nav-item>span:not(.ico) {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ms-uc-nav-item .ico {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #64748b;
    color: #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
  }

  .ms-uc-nav-item .ico svg {
    width: 20px;
    height: 20px;
    stroke: #fff
  }

  .ms-uc-nav-item .ico i {
    font-size: 18px;
    color: #fff
  }

  /* 每个入口固定不同色，互不撞色 */
  .ms-uc-nav-item[data-nav="home"] .ico {
    background: #22c55e
  }

  .ms-uc-nav-item[data-nav="profile"] .ico {
    background: #f59e0b
  }

  .ms-uc-nav-item[data-nav="playlists"] .ico {
    background: #fb7185
  }

  .ms-uc-nav-item[data-nav="downloads"] .ico {
    background: #3b82f6
  }

  .ms-uc-nav-item[data-nav="orders"] .ico {
    background: #14b8a6
  }

  .ms-uc-nav-item[data-nav="message"] .ico {
    background: #8b5cf6
  }

  .ms-uc-nav-item[data-nav="verify"] .ico {
    background: #65a30d
  }

  .ms-uc-nav-item[data-nav="invite"] .ico {
    background: #db2777
  }

  .ms-uc-nav-item[data-nav="apply"] .ico {
    background: #4f46e5
  }

  .ms-uc-nav-item[data-nav="songs"] .ico {
    background: #0284c7
  }

  .ms-uc-nav-item[data-nav="song-upload"] .ico {
    background: #ea580c
  }

  .ms-uc-nav-item[data-nav="albums"] .ico {
    background: #7c3aed
  }

  .ms-uc-nav-item[data-nav="earnings"] .ico {
    background: #ca8a04
  }

  .ms-uc-nav-item.is-more .ico {
    background: #64748b !important
  }

  .ms-uc-nav-item:hover {
    color: var(--text);
    background: transparent;
  }

  .ms-uc-nav-item:hover .ico {
    color: #fff;
    filter: brightness(1.06)
  }

  .ms-uc-nav-item.is-on {
    color: var(--accent);
    background: transparent;
    font-weight: 800;
  }

  .ms-uc-nav-item.is-on .ico {
    color: #fff;
    box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent), 0 6px 14px rgba(0, 0, 0, .18);
  }

  .ms-uc-nav-item .ms-uc-nav-badge {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translate(22px, -2px);
    margin: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    line-height: 16px;
    border: 2px solid var(--panel);
    z-index: 1;
  }

  .ms-uc-nav-item.is-logout .ico {
    background: #ef4444
  }

  .ms-uc-nav.is-collapsed .ms-uc-nav-item.is-overflow {
    display: none
  }

  .ms-uc-nav-item.is-more {
    display: flex !important;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    margin: 0;
    cursor: pointer;
    background: transparent;
    color: var(--sub);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 4px 2px;
    width: auto;
    min-width: 0;
    border-radius: 12px;
    text-align: center;
  }

  .ms-uc-nav-item.is-more .ico {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #64748b;
    color: #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
  }

  .ms-uc-nav-item.is-more .ico svg {
    width: 20px;
    height: 20px;
    stroke: #fff
  }

  .ms-uc-nav-item.is-more .ms-uc-nav-more-ico[hidden] {
    display: none !important
  }

  .ms-uc-nav-item.is-more>span:not(.ico) {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
  }

  .ms-uc-profile {
    flex-direction: column;
    align-items: flex-start
  }

  .ms-uc-stats {
    grid-template-columns: 1fr
  }

  .ms-uc-overview-grid {
    grid-template-columns: 1fr
  }

  .ms-uc-plugin .invite-grid {
    grid-template-columns: 1fr
  }

  .ms-invite-stats {
    grid-template-columns: 1fr
  }

  .ms-invite-rewards {
    grid-template-columns: 1fr
  }

  .ms-invite-grid {
    grid-template-columns: 1fr
  }

  .ms-invite-share-row {
    flex-direction: column;
    align-items: stretch
  }

  .ms-invite-share-row .ms-uc-btn {
    width: 100%
  }

  .ms-apply-row {
    grid-template-columns: 1fr
  }

  .ms-apply-verify-card {
    flex-wrap: wrap
  }
}

@media (max-width:380px) {
  .ms-uc-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 2px
  }
}

/* ===== Song upload (chip layout) ===== */
.ms-up .ms-uc-card-hd {
  margin-bottom: 8px
}

.ms-up-form {
  padding: 8px 4px 4px;
  display: grid;
  gap: 18px
}

.ms-up-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px 16px;
  align-items: start
}

.ms-up-label {
  padding-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap
}

.ms-up-label i {
  color: var(--accent);
  font-style: normal;
  margin-left: 2px
}

.ms-up-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-height: 36px
}

.ms-up-chips-empty {
  font-size: 13px;
  color: var(--sub)
}

.ms-up-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}

.ms-up-chip:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.ms-up-chip.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 6px 16px var(--accent-soft);
}

[data-theme="light"] .ms-up-chip.is-on {
  color: #fff
}

.ms-up-file {
  display: flex;
  align-items: center
}

.ms-up-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 1.5px dashed var(--accent);
  border-radius: 10px;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background .15s, filter .15s;
}

.ms-up-add-btn i {
  font-size: 18px;
  line-height: 1
}

.ms-up-add-btn:hover {
  background: var(--accent-dim)
}

.ms-up-queue {
  display: grid;
  gap: 10px;
  padding: 4px 0 2px
}

.ms-up-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 12px 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel2);
  overflow: hidden;
}

.ms-up-item-main {
  display: grid;
  gap: 4px;
  min-width: 0
}

.ms-up-item-main strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.ms-up-item-main span {
  font-size: 12px;
  color: var(--sub)
}

.ms-up-item-main em {
  font-style: normal;
  font-size: 12px;
  color: var(--accent)
}

.ms-up-item.status-error .ms-up-item-main em {
  color: #ff6b7a
}

.ms-up-item-side {
  display: flex;
  align-items: flex-start;
  gap: 8px
}

.ms-up-item-side b {
  font-size: 12px;
  font-weight: 700;
  color: var(--sub);
  padding-top: 2px
}

.ms-up-item.status-done .ms-up-item-side b {
  color: var(--accent)
}

.ms-up-item.status-error .ms-up-item-side b {
  color: #ff6b7a
}

.ms-up-item-del {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--sub);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.ms-up-item-del:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06)
}

.ms-up-progress {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  margin-top: 2px;
}

.ms-up-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
  transition: width .2s
}

.ms-up-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}

.ms-up-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter .15s, opacity .15s;
}

.ms-up-btn i {
  font-size: 18px;
  line-height: 1
}

.ms-up-btn.solid {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--text);
  border: none;
  box-shadow: 0 8px 18px var(--accent-soft);
}

[data-theme="light"] .ms-up-btn.solid {
  color: #fff
}

.ms-up-btn.solid:hover {
  filter: brightness(1.06)
}

.ms-up-btn.solid:disabled {
  opacity: .55;
  cursor: not-allowed;
  filter: none
}

.ms-up-btn.ghost {
  background: var(--panel2);
  border-color: var(--line);
  color: var(--text);
}

.ms-up-btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent)
}

#msUpPause {
  margin-left: auto
}

.ms-up-notice {
  margin-top: 16px
}

.ms-up-notice-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 15px;
}

.ms-up-notice-hd i {
  font-size: 20px;
  line-height: 1
}

.ms-up-notice-hd strong {
  font-weight: 800;
  color: var(--accent)
}

.ms-up-notice ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px
}

.ms-up-notice li {
  font-size: 13px;
  line-height: 1.65;
  color: var(--sub);
  font-weight: 500
}

.ms-up-notice li:last-child {
  color: var(--accent);
  font-weight: 700
}

@media (max-width:860px) {
  .ms-up-row {
    grid-template-columns: 1fr;
    gap: 8px
  }

  .ms-up-label {
    padding-top: 0
  }

  #msUpPause {
    margin-left: 0
  }

  .ms-up-actions {
    justify-content: stretch
  }

  .ms-up-btn {
    flex: 1 1 auto;
    min-width: 120px
  }
}

/* recharge / vip pages */
.ms-recharge-empty {
  padding: 36px 20px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--sub);
  text-align: center
}

.ms-recharge-board,
.ms-vip-board {
  padding: 18px 18px 16px
}

.ms-recharge-board>.ms-uc-card-hd,
.ms-vip-board>.ms-uc-card-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.ms-recharge-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 750;
  color: var(--sub);
}

.ms-recharge .recharge-form {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.ms-vip .recharge-section {
  max-width: none
}

.ms-recharge .recharge-section {
  margin: 0 0 20px
}

.ms-recharge .recharge-section:last-of-type {
  margin-bottom: 0
}

.ms-recharge .recharge-packages,
.ms-vip .recharge-packages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.ms-vip .ms-vip-packages {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.ms-recharge .recharge-pack-custom {
  grid-column: auto
}

.ms-recharge .recharge-pack,
.ms-vip .recharge-pack {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin: 0;
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel2);
  cursor: pointer;
  transition: .18s ease;
  min-height: 92px;
  color: var(--text);
  font: inherit;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.ms-recharge .recharge-pack input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.ms-recharge .recharge-pack strong,
.ms-vip .recharge-pack strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  padding-right: 36px;
  color: var(--text);
  line-height: 1.3;
}

.ms-recharge .recharge-pack strong small {
  font-size: 12px;
  font-weight: 600;
  color: var(--sub)
}

.ms-vip .ms-vip-pack-price {
  display: block;
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.ms-vip .ms-vip-pack-price small {
  font-size: 12px;
  font-weight: 600;
  color: var(--sub)
}

.ms-recharge .recharge-pack span,
.ms-vip .recharge-pack span {
  display: block;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600
}

.ms-recharge .recharge-pack.on,
.ms-recharge .recharge-pack:hover,
.ms-vip .recharge-pack.on,
.ms-vip .recharge-pack:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.ms-recharge .recharge-pack.on,
.ms-vip .recharge-pack.on {
  border-color: var(--accent) !important;
  background: var(--accent-dim) !important;
}

.ms-recharge .recharge-pack-badge,
.ms-vip .recharge-pack-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  padding: 3px 8px 4px 9px;
  border-radius: 0 14px 0 10px;
  background: var(--accent);
  color: #04140f;
  font-size: 10px;
  font-weight: 800;
  font-style: normal;
  line-height: 1.2;
  pointer-events: none;
}

html[data-theme="light"] .ms-recharge .recharge-pack-badge,
html[data-theme="light"] .ms-vip .recharge-pack-badge {
  color: #fff
}

.ms-recharge .recharge-channels,
.ms-vip .recharge-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  width: 100%;
}

.ms-recharge .recharge-custom-box {
  margin-top: 10px;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: var(--panel2);
  box-sizing: border-box;
}

.ms-recharge .recharge-custom-box.is-hidden {
  display: none
}

.ms-recharge .recharge-custom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-sizing: border-box;
}

.ms-recharge .recharge-custom-prefix {
  font-size: 16px;
  font-weight: 800;
  color: var(--sub);
  flex: 0 0 auto;
}

.ms-recharge .recharge-custom-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}

.ms-recharge .recharge-custom-input::-webkit-outer-spin-button,
.ms-recharge .recharge-custom-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0
}

.ms-recharge .recharge-custom-input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield
}

.ms-recharge .recharge-custom-preview {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--sub);
}

.ms-recharge .recharge-custom-preview strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.ms-recharge .recharge-tip {
  margin: 12px 0 0;
  color: var(--sub);
  font-size: 12px;
  line-height: 1.6
}

.ms-recharge .recharge-channel,
.ms-vip .recharge-channel {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  min-height: 68px;
  width: 100%;
  margin: 0;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
  transition: .15s ease;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  appearance: none;
  -webkit-appearance: none;
}

.ms-recharge .recharge-channel .pay-ico,
.ms-vip .recharge-channel .pay-ico {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: remixicon !important;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.ms-recharge .recharge-channel.pm-zfb .pay-ico::before,
.ms-vip .recharge-channel.pm-zfb .pay-ico::before {
  content: "\ea2b"
}

.ms-recharge .recharge-channel.pm-wx .pay-ico::before,
.ms-vip .recharge-channel.pm-wx .pay-ico::before {
  content: "\f2b7"
}

.ms-recharge .recharge-channel.pm-qq .pay-ico::before,
.ms-vip .recharge-channel.pm-qq .pay-ico::before {
  content: "\f03a"
}

.ms-recharge .recharge-channel.pm-usdt .pay-ico::before,
.ms-vip .recharge-channel.pm-usdt .pay-ico::before {
  content: "\ef64"
}

.ms-recharge .recharge-channel.pm-cny .pay-ico::before,
.ms-vip .recharge-channel.pm-cny .pay-ico::before {
  content: "\f05a"
}

.ms-recharge .recharge-channel.pm-bank .pay-ico::before,
.ms-vip .recharge-channel.pm-bank .pay-ico::before {
  content: "\f2d2"
}

.ms-recharge .recharge-channel.pm-zfb,
.ms-vip .recharge-channel.pm-zfb {
  color: #1677ff;
  border-color: rgba(22, 119, 255, .45);
  background: rgba(22, 119, 255, .1)
}

.ms-recharge .recharge-channel.pm-wx,
.ms-vip .recharge-channel.pm-wx {
  color: #07c160;
  border-color: rgba(7, 193, 96, .45);
  background: rgba(7, 193, 96, .1)
}

.ms-recharge .recharge-channel.pm-qq,
.ms-vip .recharge-channel.pm-qq {
  color: #12b7f5;
  border-color: rgba(18, 183, 245, .45);
  background: rgba(18, 183, 245, .1)
}

.ms-recharge .recharge-channel.pm-usdt,
.ms-vip .recharge-channel.pm-usdt {
  color: #26a17b;
  border-color: rgba(38, 161, 123, .45);
  background: rgba(38, 161, 123, .1)
}

.ms-recharge .recharge-channel.pm-cny,
.ms-vip .recharge-channel.pm-cny {
  color: #e11d48;
  border-color: rgba(225, 29, 72, .4);
  background: rgba(225, 29, 72, .08)
}

.ms-recharge .recharge-channel.pm-bank,
.ms-vip .recharge-channel.pm-bank {
  color: #b45309;
  border-color: rgba(180, 83, 9, .45);
  background: rgba(180, 83, 9, .1)
}

.ms-recharge .recharge-channel span,
.ms-vip .recharge-channel span {
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  flex: 0 0 auto
}

.ms-recharge .recharge-channel.is-on,
.ms-recharge .recharge-channel:hover,
.ms-vip .recharge-channel.is-on,
.ms-vip .recharge-channel:hover {
  filter: brightness(1.06);
  box-shadow: inset 0 0 0 1px currentColor;
}

.ms-recharge .recharge-actions,
.ms-vip .recharge-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px
}

.ms-recharge .recharge-actions .ms-uc-btn,
.ms-vip .recharge-actions .ms-uc-btn {
  min-width: 160px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px
}

.ms-vip .recharge-tip {
  margin: 14px 0 0;
  color: var(--sub);
  font-size: 12px;
  line-height: 1.6
}

.ms-vip .recharge-actions .ms-uc-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
  filter: none
}

@media (max-width:1100px) {

  .ms-recharge .recharge-packages,
  .ms-vip .ms-vip-packages {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media (max-width:640px) {
  .ms-recharge .recharge-packages {
    grid-template-columns: 1fr
  }

  .ms-vip .ms-vip-packages {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .ms-recharge .recharge-channels,
  .ms-vip .recharge-channels {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px
  }

  .ms-recharge .recharge-channel,
  .ms-vip .recharge-channel {
    min-height: 60px;
    padding: 12px 8px;
    gap: 6px
  }

  .ms-recharge .recharge-channel span,
  .ms-vip .recharge-channel span {
    font-size: 12px
  }

  .ms-recharge .recharge-actions .ms-uc-btn,
  .ms-vip .recharge-actions .ms-uc-btn {
    width: 100%
  }
}

/* pay confirm modal (community uc-modal shell not loaded here) */
body.uc-ui-lock {
  overflow: hidden
}

.uc-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.uc-modal.open {
  display: flex
}

.uc-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .58)
}

.uc-modal-panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  text-align: center;
  max-height: min(90vh, 920px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.uc-modal-panel::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important
}

.uc-modal-x {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--sub2);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.uc-modal-x:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: scale(1.08);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

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

.uc-modal-x i {
  font-size: 16px;
  line-height: 1
}

.uc-modal-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text)
}

.pay-order-panel {
  width: min(420px, 100%);
  padding: 22px 20px 20px;
  text-align: center
}

.pay-order-card {
  display: flex;
  flex-direction: column;
  align-items: center
}

.pay-order-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--sub);
  font-size: 12px;
  font-weight: 700;
}

.pay-order-badge i {
  font-size: 15px;
  line-height: 1
}

.pay-order-badge .pay-ico {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: remixicon !important;
  font-style: normal;
  font-size: 15px;
  line-height: 1;
}

.pay-order-badge.pm-zfb {
  color: #1677ff;
  background: rgba(22, 119, 255, .12);
  border-color: rgba(22, 119, 255, .3)
}

.pay-order-badge.pm-zfb .pay-ico::before {
  content: "\ea2b"
}

.pay-order-badge.pm-wx {
  color: #07c160;
  background: rgba(7, 193, 96, .12);
  border-color: rgba(7, 193, 96, .3)
}

.pay-order-badge.pm-wx .pay-ico::before {
  content: "\f2b7"
}

.pay-order-badge.pm-qq {
  color: #12b7f5;
  background: rgba(18, 183, 245, .12);
  border-color: rgba(18, 183, 245, .3)
}

.pay-order-badge.pm-qq .pay-ico::before {
  content: "\f03a"
}

.pay-order-badge.pm-usdt {
  color: #26a17b;
  background: rgba(38, 161, 123, .14);
  border-color: rgba(38, 161, 123, .3)
}

.pay-order-badge.pm-usdt .pay-ico::before {
  content: "\ef64"
}

.pay-order-badge.pm-cny {
  color: #e11d48;
  background: rgba(225, 29, 72, .12);
  border-color: rgba(225, 29, 72, .28)
}

.pay-order-badge.pm-cny .pay-ico::before {
  content: "\f05a"
}

.pay-order-amount {
  margin: 4px 0 8px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.pay-order-meta {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.5
}

.pay-order-no {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--sub2);
  word-break: break-all
}

.pay-order-qr-wrap {
  margin: 0 0 10px
}

.pay-order-qr-wrap.is-hidden,
.pay-order-sandbox.is-hidden {
  display: none
}

.pay-order-qr {
  width: 220px;
  height: 220px;
  display: block;
  margin: 0 auto 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px;
  box-sizing: border-box;
}

.pay-order-hint {
  margin: 0;
  font-size: 12px;
  color: var(--sub2);
  line-height: 1.5
}

.pay-order-sandbox {
  margin: 4px 0 12px;
  width: 100%
}

.pay-order-sandbox .btn,
.pay-order-hint .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  margin-top: 10px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 18px var(--accent-soft);
}

.pay-order-sandbox .btn:hover,
.pay-order-hint .btn:hover {
  filter: brightness(1.05)
}

.pay-order-status {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--sub)
}

.pay-order-status.is-ok {
  color: #34d399
}

.pay-order-status.is-err {
  color: #f87171
}

.pay-order-usdt {
  margin: 14px 0 0;
  padding: 14px 14px 12px;
  border-radius: 14px;
  width: 100%;
  background: rgba(38, 161, 123, .1);
  border: 1px solid rgba(38, 161, 123, .28);
  text-align: left;
  box-sizing: border-box;
}

.pay-order-usdt.is-hidden {
  display: none
}

.pay-usdt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px
}

.pay-usdt-row:last-child {
  margin-bottom: 0
}

.pay-usdt-label {
  flex: 0 0 auto;
  width: 36px;
  font-size: 13px;
  color: var(--sub)
}

.pay-usdt-val {
  flex: 1;
  text-align: left;
  font-size: 14px;
  font-weight: 750;
  color: var(--text)
}

.pay-usdt-val-act {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px
}

.pay-usdt-money {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
  color: #26a17b;
  letter-spacing: -.01em
}

.pay-usdt-addr {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.4;
  word-break: break-all;
  color: var(--text);
}

.pay-usdt-copy {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--panel2);
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.pay-usdt-copy:hover {
  filter: brightness(1.08)
}

.pay-usdt-rate {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--sub2);
  line-height: 1.5
}

.pay-order-card.is-usdt .pay-order-amount {
  font-size: 30px
}

.pay-usdt-unit {
  font-style: normal;
  font-size: .55em;
  font-weight: 750;
  margin-left: 2px;
  color: var(--text)
}

/* 下载记录：曲目列表与底部工具条左右对齐；标题右侧免费/付费筛选 */
.ms-uc-dl-panel .track-grid.track-grid-one {
  padding: 4px 0 8px;
}

.ms-uc-dl-panel .track-info .m {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.45;
}

.ms-uc-dl-panel .cat-toolbar.ms-uc-dl-toolbar,
.ms-uc-dl-panel .cat-toolbar {
  margin-top: 8px;
  padding: 10px 0 4px;
  border-top: 1px solid var(--line);
}

.ms-uc-dl-panel .ms-uc-card-hd {
  margin-bottom: 10px;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.ms-uc-dl-panel .ms-uc-card-title {
  flex: 0 0 auto;
  white-space: nowrap;
}

.ms-uc-dl-panel .ms-uc-settings-tabs {
  margin-left: auto;
  flex: 0 0 auto;
}

@media (max-width:860px) {
  .ms-uc-dl-panel .ms-uc-settings-tabs {
    margin-left: 0;
    flex: 1 1 100%;
    width: 100%;
    display: flex;
  }

  .ms-uc-dl-panel .ms-uc-settings-tab {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}

/* song report / feedback modal */
.ms-report-modal {
  position: fixed;
  inset: 0;
  z-index: 1220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
}

.ms-report-modal.is-open {
  display: flex
}

.ms-report-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(4px);
}

html[data-theme="light"] .ms-report-mask {
  background: rgba(15, 23, 42, .36)
}

.ms-report-panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55);
  color: var(--text);
}

.ms-report-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.ms-report-hd strong {
  font-size: 18px;
  font-weight: 800
}

.ms-report-x {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--sub2);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.ms-report-x:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: scale(1.08);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.ms-report-x:active {
  transform: scale(.94)
}

.ms-report-song {
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--panel2);
  border: 1px solid var(--line);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-report-label {
  display: block;
  font-size: 12px;
  color: var(--sub2);
  margin: 0 0 6px
}

.ms-report-text {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel2);
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}

.ms-report-text:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim)
}

.ms-report-dd {
  position: relative;
  margin-bottom: 12px
}

.ms-report-dd-btn {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel2);
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}

.ms-report-dd-btn:hover,
.ms-report-dd.is-open .ms-report-dd-btn {
  border-color: var(--accent);
}

.ms-report-dd.is-open .ms-report-dd-btn {
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.ms-report-dd-caret {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-right: 2px solid var(--sub2);
  border-bottom: 2px solid var(--sub2);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform .15s ease;
}

.ms-report-dd.is-open .ms-report-dd-caret {
  transform: rotate(-135deg);
  margin-top: 2px;
  border-color: var(--accent)
}

.ms-report-dd-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .45);
  padding: 6px;
  max-height: 240px;
  overflow: auto;
}

.ms-report-dd.is-open .ms-report-dd-menu {
  display: block
}

.ms-report-opt {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.3;
}

.ms-report-opt:hover {
  background: var(--panel2);
  color: var(--accent)
}

.ms-report-opt.is-on {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 650
}

.ms-report-actions {
  display: block;
  margin-top: 4px
}

.ms-report-btn {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.ms-report-btn.ok {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff
}

.ms-report-btn.ok:hover {
  filter: brightness(1.06)
}

.ms-report-btn:disabled {
  opacity: .6;
  cursor: not-allowed
}

/* ========== Message center (musicstation) ========== */
.ms-msg .ms-uc-settings-tabs a.ms-uc-settings-tab {
  text-decoration: none;
  box-sizing: border-box
}

.ms-msg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.ms-msg-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.ms-msg-toolbar .tool-btn {
  height: 32px;
  padding: 0 14px;
  font-size: 12px
}

.ms-msg-toolbar-acts {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.ms-msg-toolbar-acts .ms-uc-btn {
  height: 32px;
  padding: 0 14px;
  font-size: 12px;
  border-radius: 8px
}

.ms-msg-acts .ms-uc-btn {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 999px
}

.ms-uc-btn.soft.is-danger {
  border-color: color-mix(in srgb, #ff5c8a 40%, var(--line));
  color: #ff7a9c;
  background: rgba(255, 92, 138, .1);
}

.ms-msg-list {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.ms-msg-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 14px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel2);
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.ms-msg-item:hover {
  border-color: var(--accent)
}

.ms-msg-item.is-unread {
  background: color-mix(in srgb, var(--accent) 6%, var(--panel2));
}

.ms-msg-item.is-checked {
  border: 1px solid var(--accent);
  box-shadow: none;
  background: color-mix(in srgb, var(--accent) 8%, var(--panel2));
}

.ms-msg-body {
  min-width: 0;
  flex: 1
}

.ms-msg-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px
}

.ms-msg-from {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent)
}

.ms-msg-time {
  font-size: 12px;
  color: var(--sub2);
  font-variant-numeric: tabular-nums
}

.ms-msg-title {
  margin: 0;
  font-size: 15px;
  font-weight: 850;
  color: var(--text);
  line-height: 1.35
}

.ms-msg-item.is-unread .ms-msg-title {
  color: var(--accent)
}

.ms-msg-content {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--sub);
  word-break: break-word;
}

.ms-msg-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px
}

.ms-msg-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
  padding: 0;
  flex-wrap: wrap;
}

.ms-msg-pager .ms-msg-page-btn {
  min-width: 34px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--panel2);
  color: var(--sub);
  font-size: 13px;
  border: 1px solid var(--line);
  text-decoration: none;
  cursor: pointer;
}

.ms-msg-pager a.ms-msg-page-btn:hover {
  color: var(--accent);
  border-color: var(--accent)
}

.ms-msg-pager .ms-msg-page-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
}

.ms-msg-pager .ms-msg-page-btn:disabled {
  opacity: 1;
  cursor: not-allowed;
}

@media (max-width:720px) {
  .ms-msg-foot {
    flex-direction: column;
    align-items: stretch
  }

  .ms-msg-toolbar {
    width: 100%
  }

  .ms-msg-toolbar-acts {
    flex: 1
  }

  .ms-msg-toolbar-acts .ms-uc-btn {
    flex: 1
  }

  .ms-msg-pager {
    margin-left: 0;
    justify-content: center;
    width: 100%
  }
}

/* ========== Signin modal (from signin plugin, themed for musicstation) ========== */
.signin-modal[hidden] {
  display: none !important
}

.signin-modal {
  --card: var(--panel);
  --chip: var(--panel2);
  --muted: var(--sub);
  --text-soft: var(--sub);
  --accent-ink: #fff;
  --accent-soft: var(--accent-dim);
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom))
}

.signin-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55)
}

.signin-modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 720px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius, 20px);
  overflow: hidden;
  background: var(--card, #fff);
  border: 1px solid var(--line, #e5e7eb);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
  color: var(--text, #0f172a)
}

.si-sheet-head {
  flex: 0 0 auto;
  padding: 18px 18px 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 70%, var(--card, #fff)) 0%, var(--card, #fff) 100%)
}

.si-sheet-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.si-sheet-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--text, #0f172a)
}

.si-sheet-title i {
  font-size: 20px;
  color: var(--accent)
}

.si-sheet-x {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: var(--chip, #f1f5f9);
  color: var(--muted, #64748b);
  box-shadow: inset 0 0 0 1px var(--line, #e5e7eb)
}

.si-sheet-x:hover {
  color: var(--text, #0f172a);
  background: var(--card, #fff)
}

.si-sheet-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-bottom: 4px
}

.si-sheet-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--chip, #f1f5f9);
  box-shadow: inset 0 0 0 1px var(--line, #e5e7eb)
}

.si-sheet-tab {
  border: 0;
  background: transparent;
  cursor: pointer;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  color: var(--muted, #64748b)
}

.si-sheet-tab.is-on {
  background: var(--card, #fff);
  color: var(--accent);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 14%, transparent)
}

.si-sheet-balance {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line, #e5e7eb));
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #64748b);
  white-space: nowrap
}

.si-sheet-balance b {
  color: var(--accent);
  font-weight: 800;
  font-variant-numeric: tabular-nums
}

.signin-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 14px 18px 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none
}

.signin-modal-body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none
}

.signin-loading,
.signin-empty {
  text-align: center;
  padding: 36px 12px;
  color: var(--muted, #64748b);
  font-size: 13px;
  font-weight: 650
}

.si-mine-cta {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-ink, #fff);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 28%, transparent)
}

.si-mine-cta:disabled {
  opacity: .7;
  cursor: not-allowed;
  box-shadow: none
}

.si-mine-cta.is-done {
  background: var(--chip, #e2e8f0);
  color: var(--muted, #64748b);
  box-shadow: none
}

.si-mine-status {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted, #64748b);
  line-height: 1.5
}

.si-mine-status em {
  font-style: normal;
  color: var(--accent);
  font-weight: 800;
  font-variant-numeric: tabular-nums
}

.si-mine-rules {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px dashed color-mix(in srgb, var(--accent) 22%, var(--line, #e5e7eb));
  font-size: 12px;
  line-height: 1.55;
  font-weight: 650
}

.si-mine-rules-title {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.45
}

.si-mine-rules-body {
  color: var(--text-soft, #475569);
  font-weight: 650;
  line-height: 1.55
}

.si-mine-cal {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line, #e5e7eb)
}

.si-cal-cap {
  margin: 0 0 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--text, #0f172a)
}

.si-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px
}

.si-cal-label {
  font-size: 13px;
  font-weight: 750;
  color: var(--text, #0f172a);
  font-variant-numeric: tabular-nums
}

.si-cal-actions {
  display: inline-flex;
  gap: 6px
}

.si-cal-btn {
  height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid var(--line, #e5e7eb);
  background: var(--card, #fff);
  color: var(--muted, #64748b);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer
}

.si-cal-btn:hover,
.si-cal-btn.is-on {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line, #e5e7eb));
  background: var(--accent-soft)
}

.si-cal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px
}

.si-cal-week span {
  text-align: center;
  font-size: 11px;
  font-weight: 750;
  color: var(--muted, #64748b);
  padding: 2px 0
}

.si-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px
}

.si-cal-cell {
  aspect-ratio: 1;
  border: 0;
  border-radius: 12px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 13px;
  font-weight: 750;
  color: var(--text, #0f172a);
  position: relative;
  padding: 0;
  font-variant-numeric: tabular-nums
}

.si-cal-cell.is-pad {
  visibility: hidden;
  pointer-events: none
}

.si-cal-cell.is-future {
  color: color-mix(in srgb, var(--muted, #64748b) 70%, transparent);
  font-weight: 650
}

.si-cal-cell.is-past {
  color: var(--muted, #94a3b8);
  background: var(--chip, #f8fafc)
}

.si-cal-cell.is-miss {
  background: var(--accent-soft);
  color: var(--text, #0f172a);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, var(--line, #e5e7eb));
  cursor: pointer
}

.si-cal-cell.is-miss:hover {
  background: color-mix(in srgb, var(--accent-soft) 80%, var(--card, #fff))
}

.si-cal-cell.is-signed,
.si-cal-cell.is-makeup_done {
  background: var(--accent);
  color: var(--accent-ink, #fff);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 28%, transparent)
}

.si-cal-cell.is-signed i,
.si-cal-cell.is-makeup_done i {
  font-size: 11px;
  line-height: 1;
  opacity: .95
}

.si-cal-cell.is-today {
  background: var(--accent);
  color: var(--accent-ink, #fff);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 6px 14px color-mix(in srgb, var(--accent) 28%, transparent)
}

.si-cal-tag {
  position: absolute;
  right: 3px;
  bottom: 3px;
  font-size: 9px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1
}

.si-cal-cell.is-signed .si-cal-tag,
.si-cal-cell.is-makeup_done .si-cal-tag,
.si-cal-cell.is-today .si-cal-tag {
  display: none
}

.si-rank-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px
}

.si-rank-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: var(--chip, #f1f5f9);
  width: 100%;
  box-sizing: border-box
}

.si-rank-mode {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  color: var(--muted, #64748b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  box-sizing: border-box
}

.si-rank-mode.is-on {
  background: var(--accent);
  color: var(--accent-ink, #fff);
  box-shadow: 0 8px 16px color-mix(in srgb, var(--accent) 28%, transparent)
}

.si-rank-sort {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  align-self: flex-end;
  padding: 3px;
  border-radius: 10px;
  background: var(--chip, #f1f5f9)
}

.si-rank-sort button {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  color: var(--muted, #64748b);
  font-size: 12px;
  font-weight: 700
}

.si-rank-sort button.is-on {
  background: var(--card, #fff);
  color: var(--accent);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--accent) 12%, transparent)
}

.si-rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px
}

.si-rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--card, #fff);
  border: 1px solid var(--line, #e5e7eb)
}

.si-rank-no {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--chip, #f1f5f9);
  color: var(--muted, #64748b)
}

.si-rank-item:nth-child(1) .si-rank-no {
  background: var(--accent);
  color: var(--accent-ink, #fff)
}

.si-rank-item:nth-child(2) .si-rank-no {
  background: color-mix(in srgb, var(--accent) 55%, #94a3b8);
  color: var(--accent-ink, #fff)
}

.si-rank-item:nth-child(3) .si-rank-no {
  background: color-mix(in srgb, var(--accent) 35%, #94a3b8);
  color: var(--accent-ink, #fff)
}

.si-rank-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--chip, #f1f5f9)
}

.si-rank-meta {
  min-width: 0;
  flex: 1 1 auto
}

.si-rank-name {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text, #0f172a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.si-rank-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted, #64748b)
}

.si-rank-award {
  flex: 0 0 auto;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap
}

.si-rank-end {
  text-align: center;
  padding: 12px 0 4px;
  font-size: 12px;
  color: var(--muted, #94a3b8);
  font-weight: 650
}

@media (max-width:960px) {
  .signin-modal {
    padding-left: var(--mobile-gutter, 16px);
    padding-right: var(--mobile-gutter, 16px);
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    align-items: center
  }

  .signin-modal-card {
    width: 100%;
    max-width: none;
    max-height: min(92vh, 760px);
    border-radius: calc(var(--radius, 20px) - 2px)
  }
}

@media (max-width:640px) {
  .signin-modal {
    padding-left: 12px;
    padding-right: 12px
  }

  .si-sheet-head,
  .signin-modal-body {
    padding-left: 14px;
    padding-right: 14px
  }
}

/* soft nav: keep chrome, subtle content cue while fetching */
html.ms-softnav-loading main,
html.ms-softnav-loading .ms-uc-wrap {
  opacity: .72;
  transition: opacity .12s ease;
  pointer-events: none;
}

html:not(.ms-softnav-loading) main,
html:not(.ms-softnav-loading) .ms-uc-wrap {
  transition: opacity .16s ease;
}

/* ========== Static pages (about / privacy / copyright) ========== */
.footer-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin: 6px 0 2px;
}

.footer-pages a {
  margin: 0
}

.ms-static-page {
  padding: 0 0 28px
}

.ms-static-hd {
  padding: 28px 28px 18px;
  border-bottom: 1px solid var(--line);
}

.ms-static-hd h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .3px;
  line-height: 1.3;
}

.ms-static-nav {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ms-static-nav a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--sub);
  background: var(--panel2);
  border: 1px solid var(--line);
  transition: color .15s, border-color .15s, background .15s;
}

.ms-static-nav a:hover {
  color: var(--accent);
  border-color: var(--accent)
}

.ms-static-nav a.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

.ms-static-body {
  padding: 22px 28px 8px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
}

.ms-static-body p {
  margin: 0 0 1em
}

.ms-static-body h2,
.ms-static-body h3 {
  margin: 1.4em 0 .6em;
  font-weight: 800;
  line-height: 1.35;
}

.ms-static-body h2 {
  font-size: 20px
}

.ms-static-body h3 {
  font-size: 17px
}

.ms-static-body ul,
.ms-static-body ol {
  margin: 0 0 1em;
  padding-left: 1.4em
}

.ms-static-body a {
  color: var(--accent)
}

.ms-static-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px
}

@media (max-width:720px) {
  .ms-static-hd {
    padding: 22px 18px 14px
  }

  .ms-static-hd h1 {
    font-size: 22px
  }

  .ms-static-body {
    padding: 18px 18px 4px;
    font-size: 14px
  }
}

/* ========== Ads / 自助广告位（右侧栏 ad_right） ========== */
.col-right {
  --card: var(--panel);
  --muted: var(--sub);
  --card-shadow: none;
}

.col-left>.ad-slot,
.col-right>.ad-slot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.col-left .ad-promo,
.col-right .ad-promo {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: none;
  padding: 14px;
}

.col-left .ad-promo-hd,
.col-right .ad-promo-hd {
  margin-bottom: 10px
}

.col-left .ad-promo-title,
.col-right .ad-promo-title {
  font-size: 14px;
  font-weight: 750;
  color: var(--text)
}

.col-left .ad-buy-card,
.col-right .ad-buy-card {
  background: var(--panel2);
  border: 1px dashed color-mix(in srgb, var(--accent) 28%, var(--line));
  color: var(--sub);
  border-radius: 12px;
}

.col-left .ad-buy-card:hover,
.col-right .ad-buy-card:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.col-left .ad-text,
.col-left .ad-icon-card,
.col-right .ad-text,
.col-right .ad-icon-card {
  background: var(--panel2);
  border-color: var(--line);
  color: var(--text);
}

.col-left .ad-banner,
.col-left .ad-banner-img,
.col-right .ad-banner,
.col-right .ad-banner-img {
  border-radius: var(--radius)
}

/* ========== Ads 购买弹窗（跟随音乐站深/浅色，避免白底白字） ========== */
.ad-modal {
  --ad-m-bg: var(--panel);
  --ad-m-chip: var(--panel2);
  --ad-m-text: var(--text);
  --ad-m-muted: var(--sub);
  --ad-m-line: var(--line2, var(--line));
  --card: var(--ad-m-bg);
  --chip: var(--ad-m-chip);
  --text: var(--ad-m-text);
  --muted: var(--ad-m-muted);
  --line: var(--ad-m-line);
  --accent-ink: #fff;
}

.ad-modal-panel {
  background: var(--ad-m-bg) !important;
  color: var(--ad-m-text) !important;
  border: none !important;
  border-radius: var(--radius, 14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.ad-modal-hd h3 {
  color: var(--ad-m-text) !important
}

.ad-modal-close {
  color: var(--ad-m-muted) !important
}

.ad-pkg-meta {
  color: var(--ad-m-muted) !important
}

.ad-field label {
  color: var(--ad-m-muted) !important
}

.ad-field input,
.ad-field textarea {
  background: var(--ad-m-chip) !important;
  color: var(--ad-m-text) !important;
  border-color: var(--ad-m-line) !important;
}

.ad-field input::placeholder,
.ad-field textarea::placeholder {
  color: var(--sub2, #626a75)
}

.ad-upload-preview {
  background: var(--ad-m-chip) !important;
  border-color: var(--ad-m-line) !important;
}

.ad-btn {
  background: var(--ad-m-chip) !important;
  color: var(--ad-m-text) !important;
  border-color: var(--ad-m-line) !important;
}

.ad-btn-primary {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

.ad-btn-ok {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #fff !important;
}

.ad-tier-list {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.ad-tier-item {
  background: var(--ad-m-chip) !important;
  border: 1px solid var(--ad-m-line) !important;
  color: var(--ad-m-text) !important;
}

.ad-tier-item.is-active {
  background: var(--accent-dim) !important;
  border-color: var(--accent) !important;
}

.ad-tier-days {
  color: var(--ad-m-text) !important
}

.ad-tier-price {
  color: var(--accent) !important;
  font-weight: 650
}

.ad-tier-check {
  border-color: var(--ad-m-line) !important
}

.ad-tier-item.is-active .ad-tier-check {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  box-shadow: inset 0 0 0 3px var(--ad-m-bg) !important;
}

.ad-pay-item {
  background: var(--ad-m-chip) !important;
  border-color: var(--ad-m-line) !important;
}

.ad-pay-item.is-active {
  border-color: var(--accent) !important;
  background: var(--accent-dim) !important;
}

.ad-pay-item-text {
  color: var(--ad-m-text) !important
}

.ad-pay-item-desc {
  color: var(--ad-m-muted) !important
}

.ad-qr-amount {
  color: var(--ad-m-text) !important
}

.ad-qr-status {
  color: var(--ad-m-muted) !important
}

.ad-qr-no {
  color: var(--sub2, #626a75) !important
}

.ad-modal-mask {
  background: rgba(0, 0, 0, .55)
}


/* ========== PJAX 顶栏进度 ========== */
.ms-pjax-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10080;
  height: 2px;
  width: 0;
  pointer-events: none;
  background: var(--accent, #2ee6a6);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent, #2ee6a6) 55%, transparent);
  opacity: 0;
  transform-origin: left center;
}

.ms-pjax-progress.is-active {
  opacity: 1;
  width: 78%;
  transition: width .45s ease, opacity .15s ease;
}

.ms-pjax-progress.is-done {
  opacity: 0;
  width: 100%;
  transition: width .18s ease, opacity .28s ease .05s;
}

/* ========== 首页精选歌单（分类第 2 块下方） ========== */
.ms-hot-pl-panel {
  overflow: hidden;
  max-width: 100%
}

.ms-hot-pl-viewport {
  margin: 14px 20px 22px;
  overflow: hidden;
  max-width: 100%;
  touch-action: pan-y;
  overscroll-behavior-x: none;
}

.ms-hot-pl-track {
  display: flex;
  gap: 16px;
  width: max-content;
  max-width: none;
  padding: 6px 4px 8px;
  box-sizing: border-box;
  will-change: transform;
  /* 动画位移不参与撑开页面滚动宽度 */
  contain: layout style;
}

.ms-hot-pl-track.is-marquee {
  animation: msHotPlScroll 36s linear infinite;
}

.ms-hot-pl-track.is-marquee:hover {
  animation-play-state: paused
}

@keyframes msHotPlScroll {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

.ms-hot-pl-card {
  --hot-pl: #3b82f6;
  flex: 0 0 auto;
  width: 148px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.ms-hot-pl-tone-0 {
  --hot-pl: #3b82f6
}

.ms-hot-pl-tone-1 {
  --hot-pl: #22c55e
}

.ms-hot-pl-tone-2 {
  --hot-pl: #f59e0b
}

.ms-hot-pl-tone-3 {
  --hot-pl: #ec4899
}

.ms-hot-pl-tone-4 {
  --hot-pl: #06b6d4
}

.ms-hot-pl-tone-5 {
  --hot-pl: #a855f7
}

.ms-hot-pl-tone-6 {
  --hot-pl: #ef4444
}

.ms-hot-pl-tone-7 {
  --hot-pl: #84cc16
}

.ms-hot-pl-tone-8 {
  --hot-pl: #f97316
}

.ms-hot-pl-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
  transition: transform .22s ease, box-shadow .22s ease, outline-color .22s ease;
  outline: 2px solid transparent;
  outline-offset: 3px;
}

.ms-hot-pl-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.ms-hot-pl-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, .72) 100%);
}

.ms-hot-pl-heat {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  background: color-mix(in srgb, var(--hot-pl) 78%, rgba(0, 0, 0, .45));
  backdrop-filter: blur(6px);
}

.ms-hot-pl-heat svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
  stroke: none;
}

.ms-hot-pl-name {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}

.ms-hot-pl-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .2s;
  background: rgba(0, 0, 0, .32);
}

.ms-hot-pl-play svg {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 50%;
  background: var(--hot-pl);
  color: #fff;
  fill: currentColor;
  stroke: none;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--hot-pl) 48%, transparent);
  transform: scale(.92);
  transition: transform .2s, background .2s;
}

.ms-hot-pl-card:hover .ms-hot-pl-cover,
.ms-hot-pl-card:focus-visible .ms-hot-pl-cover {
  outline-color: var(--hot-pl);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px color-mix(in srgb, var(--hot-pl) 35%, rgba(0, 0, 0, .35));
}

.ms-hot-pl-card:hover .ms-hot-pl-cover img,
.ms-hot-pl-card:focus-visible .ms-hot-pl-cover img {
  transform: scale(1.06)
}

.ms-hot-pl-card:hover .ms-hot-pl-play,
.ms-hot-pl-card:focus-visible .ms-hot-pl-play {
  opacity: 1
}

.ms-hot-pl-card:hover .ms-hot-pl-play svg,
.ms-hot-pl-card:focus-visible .ms-hot-pl-play svg {
  transform: scale(1)
}

.ms-hot-pl-empty {
  padding: 18px 4px;
  color: var(--sub2);
  font-size: 13px;
}

/* 自适应：停止滚动，每行 3 个 */
@media (max-width:1200px) {
  .ms-hot-pl-viewport {
    overflow: visible;
    margin: 12px 16px 18px
  }

  .ms-hot-pl-track,
  .ms-hot-pl-track.is-marquee {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    padding: 4px 2px 6px;
    animation: none !important;
    will-change: auto;
  }

  .ms-hot-pl-card {
    width: auto
  }

  .ms-hot-pl-card.is-clone {
    display: none
  }
}

@media (max-width:520px) {
  .ms-hot-pl-viewport {
    margin: 10px 18px 14px;
  }

  .ms-hot-pl-track,
  .ms-hot-pl-track.is-marquee {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 5px 0 6px;
  }

  .ms-hot-pl-heat {
    font-size: 10px;
    padding: 2px 6px
  }

  .ms-hot-pl-name {
    font-size: 12px;
    left: 8px;
    right: 8px;
    bottom: 8px
  }
}

/* ========== 社区风格页脚 site-foot ========== */
.site-foot {
  width: 100%;
  padding: 40px 0 0;
  border-top: 1px solid var(--line);
  background: var(--panel);
  flex-shrink: 0;
  color: var(--text);
}

.site-foot-inner {
  width: min(var(--page-max, 100%), 100%);
  margin: 0 auto;
  padding: 0 20px 24px;
  box-sizing: border-box;
}

.site-foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(var(--foot-cols, 3), minmax(0, 1fr));
  gap: 28px 36px;
}

.site-foot-grid[data-cols="0"] {
  grid-template-columns: minmax(0, 1fr)
}

.site-foot-grid[data-cols="1"] {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr)
}

.site-foot-grid[data-cols="2"] {
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr))
}

.site-foot-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0
}

.site-foot-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.02em;
  text-decoration: none;
}

.site-foot-brand-link .logo-mark,
.site-foot-brand-link .logo-mark.show {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #111));
  color: #fff;
  font-weight: 900;
  overflow: hidden;
}

.site-foot-brand-link .logo-mark.has-img {
  padding: 0;
  background: transparent
}

.site-foot-brand-link .logo-mark-img,
.site-foot-brand-link .logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.site-foot-brand-link .logo-mark i {
  font-size: 18px;
  line-height: 1
}

.site-foot-brand-link .logo-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0
}

.site-foot-brand-link .logo-text {
  font-size: 16px;
  max-width: 12em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.site-foot-brand-link .logo-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--sub2)
}

.site-foot-brand-link .logo-img {
  height: 40px;
  max-width: 180px;
  object-fit: contain;
  display: block
}

.site-foot-brand-link.has-logo {
  gap: 0
}

.site-foot-desc {
  margin: 0;
  max-width: 28em;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 500;
  color: var(--sub)
}

.site-foot-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.01em;
  align-self: end
}

.site-foot-col {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 0
}

.site-foot-col>a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--sub2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease;
}

.site-foot-col>a:hover {
  color: var(--accent)
}

.site-foot-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.site-foot-social a,
.site-foot-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--sub2);
  display: grid;
  place-items: center;
  font-size: 17px;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  cursor: pointer;
  padding: 0;
  appearance: none;
  text-decoration: none;
}

.site-foot-social a:hover,
.site-foot-social-btn:hover {
  border-color: transparent;
  background: var(--accent);
  color: #0b1220;
  transform: translateY(-1px);
}

.site-foot-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px
}

.foot-badge {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06)
}

.foot-badge-link {
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease
}

.foot-badge-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  opacity: .96
}

.foot-badge-label {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  background: #555;
  color: #fff
}

.foot-badge-value {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  color: #fff
}

.foot-badge-value--gold {
  background: #dfb317
}

.foot-badge-value--green {
  background: #4c1
}

.foot-badge-value--purple {
  background: #777aa2
}

.site-qr-hit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center
}

.site-qr-panel {
  position: absolute;
  z-index: 60;
  left: 50%;
  bottom: calc(100% + 12px);
  width: 148px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.site-qr-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}

.site-qr-panel img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
  border-radius: 6px;
  background: #fff
}

.site-qr-panel em {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 650;
  color: var(--sub2);
  line-height: 1.3
}

.site-qr-hit:hover .site-qr-panel,
.site-qr-hit.is-open .site-qr-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* 侧栏悬浮：贴按钮左侧弹出（须写在页脚规则之后，避免 translateX(-50%) 把面板再拉开半宽） */
.side-tools .site-qr-hit-float .site-qr-panel,
.site-qr-hit-float .site-qr-panel {
  left: auto;
  right: calc(100% + 8px);
  bottom: 50%;
  margin: 0;
  transform: translateY(50%) translateX(6px);
}

.side-tools .site-qr-hit-float .site-qr-panel::after,
.site-qr-hit-float .site-qr-panel::after {
  left: auto;
  right: -5px;
  bottom: 50%;
  margin: 0 0 -6px 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}

.side-tools .site-qr-hit-float:hover .site-qr-panel,
.side-tools .site-qr-hit-float.is-open .site-qr-panel,
.site-qr-hit-float:hover .site-qr-panel,
.site-qr-hit-float.is-open .site-qr-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(50%) translateX(0);
}

.site-foot-bottom {
  border-top: 1px solid var(--line);
  margin-top: 8px
}

.site-foot-bottom-inner {
  width: min(var(--page-max, 100%), 100%);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  box-sizing: border-box;
}

.site-foot-copy {
  font-size: 12px;
  color: var(--sub2);
  font-weight: 500
}

.site-foot-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 12px;
  color: var(--sub2)
}

.site-foot-legal a {
  color: var(--sub2);
  text-decoration: none
}

.site-foot-legal a:hover {
  color: var(--accent)
}

.site-foot-legal span {
  opacity: .55
}

@media (max-width:900px) {
  .site-foot {
    margin-top: 28px;
    padding-top: 28px
  }

  .site-foot-grid,
  .site-foot-grid[data-cols] {
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px
  }

  .site-foot-brand {
    grid-column: 1 / -1
  }

  .site-foot-col {
    align-items: flex-start
  }

  .site-foot-title {
    align-self: flex-start
  }
}

@media (max-width:560px) {

  .site-foot-grid,
  .site-foot-grid[data-cols] {
    grid-template-columns: 1fr
  }

  .site-foot-bottom-inner {
    flex-direction: column;
    align-items: flex-start
  }
}

/* 兼容旧 footer 类名（会员页等极简版权） */
footer.footer:not(.site-foot) {
  margin: 40px auto 24px;
  padding: 0 20px 80px;
  max-width: var(--page-max, 100%);
  color: var(--sub2);
  font-size: 12px;
  line-height: 1.7;
}

footer.footer:not(.site-foot) a {
  color: var(--sub);
  margin-right: 12px;
  text-decoration: none
}

footer.footer:not(.site-foot) a:hover {
  color: var(--accent)
}