/* index.css — styles for the song-list page (requires theme.css) */

:root {
  /* Page-specific tokens */
  --sky:       #eaf4ff;
  --sky2:      #d4eaff;
  --blue-deep: #2a6090;
  --white:     #ffffff;
  --pink:      #f8d4ea;
  --lavender:  #e4d4f8;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, #daeeff 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, #f4d8f8 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 50% 50%, #f0f8ff 0%, #f8f4ff 100%);
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--text);
}

/* ── 背景装饰 ── */
.bg-deco { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-orb {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, var(--c), transparent 70%);
  opacity: 0.2; filter: blur(60px);
}
.orb1 { --c: #b8d8f8; width: 500px; height: 500px; top: -150px; left: -150px; }
.orb2 { --c: #f0c8e8; width: 380px; height: 380px; bottom: -80px; right: -100px; }
.orb3 { --c: #c8c8f8; width: 260px; height: 260px; top: 38%; left: 62%; }

.sparkle {
  position: absolute; opacity: 0; user-select: none;
  font-size: var(--sz, 14px);
  color: var(--blue);
  animation: sp-float var(--d, 7s) var(--dl, 0s) ease-in-out infinite;
}
@keyframes sp-float {
  0%   { opacity: 0; transform: translateY(0) rotate(0deg); }
  25%  { opacity: 0.5; }
  75%  { opacity: 0.25; }
  100% { opacity: 0; transform: translateY(-55px) rotate(200deg); }
}

/* ── 页面容器 ── */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 100px;
  position: relative;
  z-index: 1;
}

/* desktop two-column layout */
@media (min-width: 860px) {
  .page {
    display: grid;
    grid-template-columns: 300px 1fr;
    column-gap: 40px;
    align-items: start;
    padding-bottom: 60px;
  }
  header {
    grid-column: 1;
    grid-row: 1 / 99;
    position: sticky;
    top: 40px;
    padding-bottom: 40px;
  }
  .header-deco { display: none; }
  header { padding-top: 40px; }
  .search-wrap { grid-column: 2; grid-row: 1; padding-top: 40px; margin-top: 0; }
  .random-btn  { grid-column: 2; grid-row: 2; }
  .mode-toggle { grid-column: 2; grid-row: 3; }
  .alpha-wrap  { grid-column: 2; grid-row: 4; }
  .meta-row    { grid-column: 2; grid-row: 5; }
  #songList    { grid-column: 2; grid-row: 6; }
  .sort-btn    { display: flex; }
}

/* ── 头部 ── */
header { padding: 40px 0 0; }

.header-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.deco-line {
  height: 1px; flex: 1; max-width: 80px;
  background: linear-gradient(90deg, transparent, var(--bow));
}
.deco-line.r { background: linear-gradient(90deg, var(--bow), transparent); }
.deco-text { font-size: 11px; letter-spacing: 4px; color: var(--text3); }

.header-card {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(var(--bow-rgb), 0.5);
  border-radius: 24px;
  padding: 24px 20px 20px;
  box-shadow:
    0 4px 28px rgba(var(--blue-rgb), 0.10),
    0 1px 0 rgba(255,255,255,0.95) inset;
  position: relative;
}

.header-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px, transparent 5px,
    rgba(var(--bow-rgb), 0.5) 5px, rgba(var(--bow-rgb), 0.5) 7px
  );
  border-radius: 0 0 24px 24px;
}

.header-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-wrap { position: relative; flex-shrink: 0; }
#avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--bow), 0 4px 14px rgba(var(--blue-rgb), 0.2);
  display: block;
  background: var(--sky2);
  opacity: 0;
  transition: opacity 0.4s ease;
}
#avatar.loaded { opacity: 1; }
.av-star {
  position: absolute; font-size: 12px; color: var(--blue);
  animation: av-orbit var(--od, 4s) linear infinite;
  top: 50%; left: 50%;
  transform-origin: 0 0;
}
@keyframes av-orbit {
  from { transform: rotate(var(--os,0deg)) translateX(40px) translateY(-50%) rotate(calc(-1*var(--os,0deg))); }
  to   { transform: rotate(calc(var(--os,0deg)+360deg)) translateX(40px) translateY(-50%) rotate(calc(-1*(var(--os,0deg)+360deg))); }
}

.header-info {}
.title-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #c8e2f8, #dccef8);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--blue-deep);
  margin-bottom: 7px;
  font-weight: 500;
}

h1 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(1.25rem, 5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 1px;
}
h1 .name {
  background: linear-gradient(135deg, var(--blue2) 20%, #9070d0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.stat-pill {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(var(--bow-rgb), 0.5);
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 11px;
  color: var(--text2);
}
.stat-pill b { color: var(--blue2); }

.header-tip {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 1px;
}
.tip-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--bow-rgb), 0.5)); }
.tip-line.r { background: linear-gradient(90deg, rgba(var(--bow-rgb), 0.5), transparent); }

/* ── 链接按钮 ── */
.link-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 0;
}
@media (min-width: 860px) {
  .link-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
}
.link-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(var(--bow-rgb), 0.45);
  background: rgba(255,255,255,0.72);
  color: var(--text2);
  font-size: 13px;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
  touch-action: manipulation;
}
.link-btn svg { flex-shrink: 0; }
.link-btn.space  { border-color: rgba(0,160,220,0.3); color: #0088bb; }
.link-btn.live   { border-color: rgba(240,80,120,0.3); color: #cc3366; }
.link-btn.qq     { border-color: rgba(18,183,245,0.3); color: #0d9dd9; }
.link-btn.gifts  { border-color: rgba(160,120,220,0.3); color: #8060c0; }
@media (hover: hover) {
  .link-btn.space:hover {
    background: rgba(220,245,255,0.9);
    border-color: rgba(0,160,220,0.55);
    transform: translateY(-1px);
    box-shadow: 0 3px 14px rgba(0,160,220,0.15);
  }
  .link-btn.live:hover {
    background: rgba(255,228,238,0.9);
    border-color: rgba(240,80,120,0.5);
    transform: translateY(-1px);
    box-shadow: 0 3px 14px rgba(240,80,120,0.15);
  }
  .link-btn.qq:hover {
    background: rgba(220,245,255,0.9);
    border-color: rgba(18,183,245,0.55);
    transform: translateY(-1px);
    box-shadow: 0 3px 14px rgba(18,183,245,0.15);
  }
  .link-btn.gifts:hover {
    background: rgba(240,232,255,0.9);
    border-color: rgba(160,120,220,0.5);
    transform: translateY(-1px);
    box-shadow: 0 3px 14px rgba(160,120,220,0.15);
  }
}
.link-btn:active { transform: scale(0.97); }
.link-btn.qq.copied { background: rgba(200,238,210,0.85); border-color: rgba(100,190,120,0.45); color: #3a9a5a; }
.link-btn.qq { position: relative; }
.link-btn.qq .copy-hint { position: absolute; right: 10px; opacity: 0.45; }

/* ── 搜索框 ── */
.search-wrap { margin: 22px 0 14px; }
.search-inner { position: relative; display: flex; align-items: center; }

#searchInput {
  width: 100%;
  padding: 13px 48px 13px 44px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(var(--bow-rgb), 0.5);
  border-radius: 50px;
  font-size: 15px;
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 10px rgba(var(--blue-rgb), 0.07), 0 1px 0 rgba(255,255,255,0.9) inset;
  -webkit-appearance: none;
}
#searchInput::placeholder { color: var(--text3); }
#searchInput:focus {
  border-color: rgba(var(--blue-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--blue-rgb), 0.10), 0 4px 18px rgba(var(--blue-rgb), 0.13);
  background: rgba(255,255,255,0.96);
}

.s-icon { position: absolute; left: 16px; color: var(--text3); pointer-events: none; transition: color 0.2s; }
#searchInput:focus ~ .s-icon { color: var(--blue2); }

.btn-clear {
  position: absolute; right: 12px;
  width: 28px; height: 28px;
  border-radius: 50%; border: none;
  background: rgba(var(--bow-rgb), 0.25);
  color: var(--text2);
  display: none;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  touch-action: manipulation;
}
.btn-clear:active { background: rgba(var(--bow-rgb), 0.5); }

/* ── 字母筛选 ── */
.alpha-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
  align-items: center;
}
.alpha-label { font-size: 10px; letter-spacing: 2px; color: var(--text3); margin-right: 2px; flex-shrink: 0; }

.alpha-btn {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid rgba(var(--bow-rgb), 0.45);
  background: rgba(255,255,255,0.65);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: 0.5px;
  touch-action: manipulation;
  -webkit-appearance: none;
  min-height: 32px;
}
.alpha-btn:active { transform: scale(0.95); }
.alpha-btn.active {
  background: linear-gradient(135deg, var(--blue), #8868d0);
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 10px rgba(var(--blue-rgb), 0.3);
}
.alpha-btn.all-btn.active {
  background: linear-gradient(135deg, #d8a0c8, #b898e0);
}

/* ── 结果提示行 ── */
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 2px;
}
.count-txt { font-size: 11px; color: var(--text3); letter-spacing: 0.5px; }
.count-txt b { color: var(--blue2); }
.hint-txt { font-size: 10px; color: var(--text3); letter-spacing: 0.5px; }

/* ── 歌曲列表 ── */
#songList { display: flex; flex-direction: column; gap: 5px; }

.song-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  background: rgba(255,255,255,0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
  border: 1.5px solid rgba(var(--bow-rgb), 0.28);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.15s, box-shadow 0.18s;
  animation: card-in 0.28s ease both;
  position: relative;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  min-height: 60px;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.song-item::before {
  content: '';
  position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: linear-gradient(180deg, var(--blue), #a080e0);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity 0.18s, top 0.18s, bottom 0.18s;
}

@media (hover: hover) {
  .song-item:hover {
    background: rgba(255,255,255,0.92);
    border-color: rgba(var(--blue-rgb), 0.4);
    transform: translateX(3px);
    box-shadow: 0 3px 16px rgba(var(--blue-rgb), 0.12);
  }
  .song-item:hover::before { opacity: 1; top: 15%; bottom: 15%; }
  .song-item:hover .copy-area { opacity: 1; }
  .song-item:hover .seq-num { color: var(--blue2); }
  .song-item:hover .song-name { color: var(--blue-deep); }
}

.song-item:active {
  background: rgba(220,238,255,0.9);
  border-color: rgba(var(--blue-rgb), 0.45);
  transform: scale(0.985);
}

.song-item.copied {
  background: rgba(200,238,210,0.85) !important;
  border-color: rgba(100,190,120,0.45) !important;
}

.seq-num {
  text-align: center;
  font-size: 12px;
  color: var(--text3);
  font-weight: 300;
  transition: color 0.18s;
  line-height: 1;
}

.song-body { min-width: 0; display: flex; align-items: center; gap: 8px; }
.song-main { min-width: 0; flex: 1; }
.song-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  transition: color 0.18s;
}
.song-singer {
  font-size: 12px;
  color: var(--text3);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 45%;
}
.song-remark {
  font-size: 11px;
  color: var(--blue2);
  opacity: 0.75;
  text-align: right;
  word-break: break-word;
  white-space: normal;
  line-height: 1.4;
  flex: 1 1 auto;
  min-width: 0;
}
.copy-area {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  opacity: 0.35;
  transition: opacity 0.18s;
}
@media (hover: none) {
  .copy-area { opacity: 0.3; }
}
.copy-area svg { color: var(--blue); }
.copy-tip {
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
@media (max-width: 400px) {
  .copy-tip { display: none; }
}

mark { background: none; color: #c050a0; font-weight: 600; }

/* ── 空态 ── */
.state-box { text-align: center; padding: 64px 20px; color: var(--text3); }
.state-emoji { font-size: 38px; margin-bottom: 12px; display: block; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.state-box h3 { font-family: 'Zen Maru Gothic', sans-serif; font-weight: 400; font-size: 16px; color: var(--text2); margin-bottom: 6px; }
.state-box p { font-size: 12px; letter-spacing: 0.5px; }

.loader-ring {
  display: inline-block;
  width: 34px; height: 34px;
  border: 2.5px solid rgba(var(--blue-rgb), 0.15);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ── */
#toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(40,100,160,0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 13px;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  max-width: 88vw;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 20px rgba(40,100,160,0.25);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── 回到顶部 ── */
#backTop {
  position: fixed;
  bottom: 28px; right: 20px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--bow-rgb), 0.5);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--blue2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(var(--blue-rgb), 0.15);
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 100;
}
#backTop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#backTop:hover { background: rgba(255,255,255,0.97); border-color: rgba(var(--blue-rgb), 0.5); }
#backTop:active { transform: scale(0.93); }

/* ── 模式切換 ── */
.mode-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.6);
  border: 1.5px solid rgba(var(--bow-rgb), 0.45);
  border-radius: 12px;
  padding: 3px;
  width: fit-content;
}
.mode-btn {
  padding: 7px 18px;
  border-radius: 9px;
  border: none;
  background: none;
  font-size: 13px;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 500;
  color: var(--text3);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.mode-btn.active {
  background: linear-gradient(135deg, var(--blue), #8868d0);
  color: white;
  box-shadow: 0 2px 8px rgba(var(--blue-rgb), 0.28);
}
.mode-btn:not(.active):hover { color: var(--blue2); background: rgba(var(--blue-rgb), 0.08); }

.singer-mode .alpha-wrap { display: none; }

/* ── 歌手面板布局 ── */
.singer-layout {
  display: flex;
  gap: 0;
  height: 600px;
  border-radius: 18px;
  border: 1.5px solid rgba(var(--bow-rgb), 0.35);
  background: rgba(255,255,255,0.55);
  overflow: hidden;
  animation: card-in 0.28s ease both;
}

.singer-list-panel {
  width: 160px;
  flex-shrink: 0;
  overflow-y: auto;
  border-right: 1px solid rgba(var(--bow-rgb), 0.3);
  background: rgba(240,248,255,0.5);
}
.singer-list-panel::-webkit-scrollbar { width: 3px; }
.singer-list-panel::-webkit-scrollbar-thumb { background: rgba(var(--blue-rgb), 0.2); border-radius: 2px; }

.singer-list-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(var(--bow-rgb), 0.12);
  touch-action: manipulation;
  position: relative;
}
.singer-list-item:hover  { background: rgba(255,255,255,0.7); }
.singer-list-item:active { background: rgba(220,238,255,0.8); }
.singer-list-item.active {
  background: rgba(255,255,255,0.92);
  border-right: 2.5px solid var(--blue);
}
.singer-list-item.active .sli-name { color: var(--blue2); font-weight: 500; }

.sli-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky2), var(--lavender));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  border: 1.5px solid rgba(var(--bow-rgb), 0.4);
  color: var(--blue2);
  font-weight: 500;
  font-family: 'Zen Maru Gothic', sans-serif;
}
.singer-list-item.active .sli-avatar {
  background: linear-gradient(135deg, var(--blue), #8868d0);
  color: white;
  border-color: transparent;
}
.sli-info { min-width: 0; flex: 1; }
.sli-name {
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.sli-count { font-size: 10px; color: var(--text3); margin-top: 1px; }

.singer-songs-panel { flex: 1; overflow-y: auto; min-width: 0; }
.singer-songs-panel::-webkit-scrollbar { width: 3px; }
.singer-songs-panel::-webkit-scrollbar-thumb { background: rgba(var(--blue-rgb), 0.2); border-radius: 2px; }

.singer-panel-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(var(--bow-rgb), 0.2);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.singer-panel-header-info {}
.singer-panel-name { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.singer-panel-count { font-size: 11px; color: var(--text3); }

.singer-sort-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1.5px solid rgba(var(--bow-rgb), 0.45);
  background: rgba(255,255,255,0.8);
  color: var(--text2);
  font-size: 10px;
  font-family: 'Noto Sans SC', sans-serif;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.18s;
  touch-action: manipulation;
  white-space: nowrap;
  flex-shrink: 0;
}
.singer-sort-btn:hover {
  border-color: rgba(var(--blue-rgb), 0.5);
  color: var(--blue2);
  background: rgba(255,255,255,0.95);
}
.singer-sort-btn:active { transform: scale(0.95); }

.singer-songs-panel .song-item {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(var(--bow-rgb), 0.1);
  background: transparent;
  animation: none;
  padding: 10px 14px;
  min-height: 50px;
}
.singer-songs-panel .song-item:last-child { border-bottom: none; }
@media (hover: hover) {
  .singer-songs-panel .song-item:hover {
    background: rgba(220,238,255,0.35);
    transform: none;
    border-radius: 0;
    box-shadow: none;
  }
  .singer-songs-panel .song-item:hover::before { display: none; }
}

@media (max-width: 580px) {
  .singer-layout { height: 520px; }
  .singer-list-panel { width: 110px; }
  .sli-name { font-size: 11px; }
  .sli-count { display: none; }
  .sli-avatar { width: 26px; height: 26px; font-size: 11px; }
}

/* ── 随机点歌按钮 ── */
.random-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(200,160,240,0.4);
  background: linear-gradient(135deg, rgba(210,185,255,0.18), rgba(255,185,220,0.18));
  color: #9060c0;
  font-size: 14px;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
}
.random-btn:hover {
  background: linear-gradient(135deg, rgba(210,185,255,0.35), rgba(255,185,220,0.35));
  border-color: rgba(180,120,220,0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(160,100,220,0.18);
}
.random-btn:active { transform: scale(0.97); }
.random-btn.spinning .dice-icon {
  animation: dice-spin 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes dice-spin {
  0%   { transform: rotate(0deg) scale(1); }
  40%  { transform: rotate(200deg) scale(1.3); }
  100% { transform: rotate(360deg) scale(1); }
}
.dice-icon { transition: transform 0.1s; display: inline-flex; }

.song-item.random-pick {
  background: rgba(220,195,255,0.45) !important;
  border-color: rgba(180,120,220,0.5) !important;
  box-shadow: 0 0 0 2px rgba(180,120,220,0.2) !important;
  animation: pick-pulse 0.6s ease !important;
}
@keyframes pick-pulse {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.02) translateX(4px); }
  100% { transform: scale(1) translateX(3px); }
}

/* ── 最近添加徽章 ── */
.new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff8fca, #c090ff);
  color: white;
  font-size: 9px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}
.recent-divider {
  text-align: center;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 2px;
  padding: 10px 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.recent-divider::before, .recent-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(var(--bow-rgb), 0.3);
}

/* ── 排序按钮 ── */
.sort-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 20px;
  border: 1.5px solid rgba(var(--bow-rgb), 0.45);
  background: rgba(255,255,255,0.65);
  color: var(--text2);
  font-size: 11px;
  font-family: 'Noto Sans SC', sans-serif;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.18s;
  touch-action: manipulation;
  white-space: nowrap;
}
.sort-btn:hover {
  border-color: rgba(var(--blue-rgb), 0.5);
  color: var(--blue2);
  background: rgba(255,255,255,0.9);
}
.sort-btn:active { transform: scale(0.95); }
