/* =========================================================
   私人听歌档案 · 设计系统
   有机 Botanica：苔藓绿 / 暖陶土 / 柔和留白 / 楷体标题
   ========================================================= */

:root {
  --bg: #0d110e;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.22);

  --text: #f1ede3;
  --text-dim: rgba(241, 237, 227, 0.66);
  --text-faint: rgba(241, 237, 227, 0.40);

  /* 有机 botanica 色板 */
  --moss: #9db98c;
  --sage: #b7c9a4;
  --terracotta: #cf9261;
  --honey: #d9c06a;
  --amber: #d9b36c;
  --sky: #82b6e8;
  --violet: #a98be8;

  --accent: var(--moss);
  --accent-soft: rgba(157, 185, 140, 0.18);
  --hover: rgba(255, 255, 255, 0.09);

  /* 随机选中：反色 */
  --inv-bg: #f2eee4;
  --inv-text: #17130d;
  --inv-dim: rgba(23, 19, 13, 0.62);
  --inv-border: rgba(23, 19, 13, 0.30);
  --inv-hover: rgba(23, 19, 13, 0.08);
  --inv-glow: rgba(242, 238, 228, 0.55);

  /* 搜索框 */
  --search-bg: rgba(9, 11, 14, 0.58);
  --search-border: rgba(255, 255, 255, 0.28);
  --search-text: var(--text);
  --search-placeholder: rgba(241, 237, 227, 0.45);

  --radius: 22px;
  --radius-sm: 14px;

  --kai: "LXGW WenKai", "Kaiti SC", "STKaiti", "KaiTi", "楷体", "SimKai", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

.page-liked { --accent: var(--terracotta); --accent-soft: rgba(207, 146, 97, 0.18); }
.page-order { --accent: var(--sky); --accent-soft: rgba(130, 182, 232, 0.18); }
.page-chaos { --accent: var(--violet); --accent-soft: rgba(169, 139, 232, 0.20); }

/* 秩序：白蓝（浅色主题） */
.page-order {
  --bg: #eef3f8;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --border: rgba(30, 60, 110, 0.12);
  --border-strong: rgba(30, 60, 110, 0.28);
  --text: #18324f;
  --text-dim: rgba(24, 50, 79, 0.64);
  --text-faint: rgba(24, 50, 79, 0.42);
  --hover: rgba(24, 50, 79, 0.07);

  --inv-bg: #16202b;
  --inv-text: #eef4fb;
  --inv-dim: rgba(238, 244, 251, 0.68);
  --inv-border: rgba(238, 244, 251, 0.32);
  --inv-hover: rgba(238, 244, 251, 0.12);
  --inv-glow: rgba(22, 32, 43, 0.60);

  --search-bg: rgba(17, 28, 42, 0.92);
  --search-border: rgba(238, 244, 251, 0.30);
  --search-text: #eef4fb;
  --search-placeholder: rgba(238, 244, 251, 0.55);
}

body.page-order {
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(130, 182, 232, 0.30), transparent 62%),
    linear-gradient(180deg, #e4eefb 0%, #c9dcf2 55%, #b4cdec 100%);
}

/* 混沌：紫黑（深色主题） */
.page-chaos {
  --bg: #12091f;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.24);
  --text: #f1edf7;
  --text-dim: rgba(241, 237, 247, 0.66);
  --text-faint: rgba(241, 237, 247, 0.40);
  --hover: rgba(255, 255, 255, 0.09);
}

body.page-chaos {
  background: linear-gradient(170deg, #190c2c 0%, #13091f 55%, #0d0716 100%);
}

/* 流行乐：青 + 深蓝（区别于秩序的蓝白与混沌的紫黑） */
.page-pop {
  --bg: #0a1a28;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(120, 220, 235, 0.16);
  --border-strong: rgba(120, 220, 235, 0.34);
  --text: #e6f6fa;
  --text-dim: rgba(230, 246, 250, 0.66);
  --text-faint: rgba(230, 246, 250, 0.40);
  --hover: rgba(255, 255, 255, 0.09);
  --accent: #3fd6e0;
  --accent-soft: rgba(63, 214, 224, 0.18);

  --inv-bg: #eafcff;
  --inv-text: #08202b;
  --inv-dim: rgba(8, 32, 43, 0.62);
  --inv-border: rgba(8, 32, 43, 0.28);
  --inv-hover: rgba(8, 32, 43, 0.08);
  --inv-glow: rgba(234, 252, 255, 0.55);

  --search-bg: rgba(6, 20, 30, 0.62);
  --search-border: rgba(120, 220, 235, 0.28);
  --search-text: #e6f6fa;
  --search-placeholder: rgba(230, 246, 250, 0.45);
}

body.page-pop {
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(63, 214, 224, 0.18), transparent 62%),
    linear-gradient(170deg, #0e2436 0%, #0a1a28 55%, #061220 100%);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 深棕 + 暖金背景（首页） */
.page-home {
  background:
    radial-gradient(58% 52% at 12% 6%, rgba(217, 179, 108, 0.16), transparent 60%),
    radial-gradient(52% 48% at 88% 10%, rgba(207, 146, 97, 0.12), transparent 60%),
    radial-gradient(66% 56% at 50% 112%, rgba(157, 185, 140, 0.10), transparent 65%),
    linear-gradient(165deg, #1d1410 0%, #150f0c 52%, #0f0a08 100%);
}

/* 胶片颗粒质感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

::selection {
  background: var(--accent);
  color: #0b0f0c;
}

a { color: inherit; }
img { display: block; }

/* 背景媒体与遮罩 */
.bg-image,
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  background: #0b0e0c;
}

.bg-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 14, 11, 0.60) 0%, rgba(12, 18, 13, 0.30) 48%, rgba(8, 12, 9, 0.80) 100%);
}

/* 蓝白（秩序） */
.page-order .bg-scrim {
  background: linear-gradient(180deg, rgba(228, 238, 250, 0.62) 0%, rgba(214, 228, 246, 0.48) 52%, rgba(224, 235, 250, 0.66) 100%);
}

/* 紫黑（混沌） */
.page-chaos .bg-scrim {
  background: linear-gradient(180deg, rgba(24, 10, 40, 0.68) 0%, rgba(54, 24, 84, 0.46) 52%, rgba(14, 6, 26, 0.84) 100%);
}

/* 苔藓绿（喜欢榜单） */
.page-liked .bg-scrim {
  background: linear-gradient(180deg, rgba(16, 24, 18, 0.62) 0%, rgba(28, 42, 30, 0.34) 52%, rgba(10, 16, 12, 0.82) 100%);
}

/* 视频背景开关：秩序 / 混沌默认关闭，显示主题色 */
.page-order .bg-video,
.page-chaos .bg-video,
.page-order .bg-scrim,
.page-chaos .bg-scrim {
  display: none;
}

.page-order.video-on .bg-video,
.page-chaos.video-on .bg-video,
.page-order.video-on .bg-scrim,
.page-chaos.video-on .bg-scrim {
  display: block;
}

/* 有机浮动光斑 */
.botanica {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 60% 40% 55% 45% / 55% 45% 60% 40%;
  filter: blur(72px);
  opacity: 0.34;
}

.blob-1 { width: 42vw; height: 42vw; top: -12vw; left: -8vw; background: rgba(157, 185, 140, 0.28); animation: drift 20s ease-in-out infinite alternate; }
.blob-2 { width: 36vw; height: 36vw; top: 20vh; right: -10vw; background: rgba(217, 179, 108, 0.20); animation: drift 24s ease-in-out infinite alternate-reverse; }
.blob-3 { width: 46vw; height: 46vw; bottom: -18vw; left: 20vw; background: rgba(207, 146, 97, 0.16); animation: drift 28s ease-in-out infinite alternate; }

@keyframes drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(3vw, 2vw) rotate(12deg); }
}

/* 页面容器 */
.page-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) clamp(16px, 3vw, 32px) 104px;
}

/* 页头 */
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}

.title-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: color .25s, border-color .25s, background .25s;
}

.back:hover {
  color: var(--accent);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

h1 {
  font-family: var(--kai);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.page-sub {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 8px;
}

/* 操作提示条 */
.tips {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
}

.tips-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

/* 头部右侧操作组 */
.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* 视频背景开关 */
.video-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: color .25s, border-color .25s, background .25s;
}

.video-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.vt-state {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  color: var(--accent);
}

/* 搜索框 */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--search-border);
  background: var(--search-bg);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.search-icon {
  flex: 0 0 auto;
  color: var(--search-placeholder);
  font-size: 16px;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--search-text);
  font-family: var(--sans);
  font-size: 15px;
}

.search-bar input::placeholder { color: var(--search-placeholder); }

.search-clear {
  flex: 0 0 auto;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid var(--search-border);
  background: transparent;
  color: var(--search-text);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}

.search-clear:hover { color: var(--accent); border-color: var(--accent); }

/* 搜索空状态 */
.empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
}

/* 歌曲网格 */
.song-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
}

@media (max-width: 1000px) { .song-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 800px) { .song-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .song-grid { grid-template-columns: repeat(2, 1fr); } }

.song-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform .35s var(--ease), border-color .35s, background .35s, box-shadow .35s;
}

.song-card:hover {
  transform: translateY(-4px);
  background: var(--surface-strong);
  border-color: var(--border-strong);
}

/* 悬停光环：秩序圣光 / 混沌深渊 */
.song-card::before {
  content: "";
  position: absolute;
  inset: -42px;
  z-index: -1;
  border-radius: 36px;
  pointer-events: none;
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.86);
  transition: opacity .5s var(--ease), transform .5s var(--ease), filter .5s var(--ease);
}

.song-card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.page-order .song-card::before {
  background: radial-gradient(circle at 50% 42%, transparent 34%, rgba(244, 211, 129, 0.38) 58%, rgba(217, 179, 108, 0.60) 100%);
}

.page-order .song-card:hover::before {
  animation: holyGlow 2.6s ease-in-out infinite;
}

@keyframes holyGlow {
  0%, 100% { filter: blur(7px); opacity: .85; }
  50% { filter: blur(15px); opacity: 1; }
}

.page-chaos .song-card::before {
  background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(172, 28, 24, 0.48) 58%, rgba(62, 6, 8, 0.72) 100%);
}

.page-chaos .song-card:hover::before {
  animation: abyssGlow 3s ease-in-out infinite;
}

@keyframes abyssGlow {
  0%, 100% { filter: blur(10px); opacity: .9; }
  50% { filter: blur(19px); opacity: 1; }
}

.page-order .song-card:hover {
  border-color: #f0cf82;
  box-shadow: 0 0 0 1px rgba(240, 207, 130, 0.85), 0 0 16px 2px rgba(240, 207, 130, 0.55), 0 0 42px 8px rgba(217, 179, 108, 0.30);
}

.page-chaos .song-card:hover {
  border-color: #c23b3b;
  box-shadow: 0 0 0 1px rgba(194, 59, 59, 0.9), 0 0 16px 2px rgba(194, 59, 59, 0.55), 0 0 48px 12px rgba(96, 8, 12, 0.55);
}

/* 随机选中：反色高亮 + 四周散发同色光，保持到下一次随机 */
.song-card.highlight,
.song-card.highlight:hover {
  background: var(--inv-bg);
  border-color: var(--inv-bg);
  color: var(--inv-text);
  box-shadow: 0 0 0 3px var(--inv-bg), 0 0 28px 6px var(--inv-glow), 0 0 72px 20px var(--inv-glow);
  z-index: 2;
}

.song-card.highlight .song-artist { color: var(--inv-dim); }
.song-card.highlight .btn { color: var(--inv-text); border-color: var(--inv-border); }
.song-card.highlight .btn:hover { background: var(--inv-hover); }
.song-card.highlight::before { display: none; }

.cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.cover::before {
  content: "♪";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: var(--text-faint);
}

.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.song-card:hover .cover img { transform: scale(1.06); }

.song-name {
  font-family: var(--kai);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.song-artist {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.35;
  margin-top: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.song-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.btn {
  flex: 1;
  padding: 8px 0;
  font-size: 13px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background .25s, border-color .25s, color .25s;
}

.btn:hover {
  background: var(--hover);
  border-color: var(--border-strong);
}

.btn.copied {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0f0c;
  font-weight: 700;
}

.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* 分页 */
.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
}

.page-list {
  grid-column: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.page-jump {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-ellipsis {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 38px;
  color: var(--text-faint);
  font-size: 14px;
  letter-spacing: 1px;
}

.page-jump input {
  width: 84px;
  height: 38px;
  padding: 0 10px;
  text-align: center;
  border-radius: 11px;
  border: 1px solid var(--search-border);
  background: var(--search-bg);
  color: var(--search-text);
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
}

.page-jump input::placeholder { color: var(--search-placeholder); }
.page-jump input::-webkit-outer-spin-button,
.page-jump input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.page-jump input[type="number"] { -moz-appearance: textfield; }

.page-jump button {
  height: 38px;
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}

.page-jump button:hover { background: var(--hover); }

.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  font-size: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}

.page-btn:hover {
  background: var(--surface-strong);
  color: var(--text);
}

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0f0c;
  font-weight: 700;
}

/* 随机按钮 */
.random-btn {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #0b0f0c;
  cursor: pointer;
  box-shadow: 0 10px 34px -8px var(--accent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform .3s var(--ease), box-shadow .3s;
  z-index: 100;
}

.random-btn:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 18px 44px -8px var(--accent);
}

.random-btn:active { transform: translateX(-50%) translateY(0) scale(0.97); }

/* 轻提示 toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(18, 22, 18, 0.9);
  color: var(--text);
  font-size: 13px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  z-index: 3000;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 首页 ===== */
.home-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 4vw, 48px);
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: clamp(22px, 4vh, 44px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 55% 45% 60% 40% / 55% 60% 40% 45%;
  background: rgba(217, 179, 108, 0.16);
  border: 1px solid var(--border-strong);
  color: var(--amber);
  font-size: 18px;
}

.brand-name {
  font-family: var(--kai);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.home-tag {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.choices {
  flex: 1;
  display: flex;
  gap: clamp(16px, 2vw, 24px);
}

.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: clamp(22px, 3vw, 34px);
  text-decoration: none;
  overflow: hidden;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: transform .4s var(--ease), border-color .4s, background .4s, box-shadow .4s;
}

.choice::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(6, 9, 7, 0.36));
  z-index: 0;
  pointer-events: none;
}

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

.choice:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: var(--surface-strong);
  box-shadow: 0 28px 64px -24px var(--accent-soft);
}

.choice.liked { --accent: var(--terracotta); --accent-soft: rgba(207, 146, 97, 0.20); flex: 0 0 34%; border-radius: 34px 34px 58px 34px; }
.choice.order { --accent: var(--sky); --accent-soft: rgba(130, 182, 232, 0.20); flex: 1; border-radius: 34px 58px 34px 34px; }
.choice.chaos { --accent: var(--violet); --accent-soft: rgba(169, 139, 232, 0.22); flex: 1; border-radius: 58px 34px 34px 34px; }
.choice.pop { --accent: #3fd6e0; --accent-soft: rgba(63, 214, 224, 0.22); flex: 1; border-radius: 34px 34px 34px 58px; }

.choice-index {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}

.choice h2 {
  font-family: var(--kai);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
}

.choice-en {
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--accent);
  margin-top: 10px;
}

.choice-desc {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 8px;
}

.choice-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-dim);
  transition: color .3s, gap .3s;
}

.choice:hover .choice-arrow { color: var(--accent); gap: 13px; }

.right-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}

.home-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--text-faint);
  font-size: 13px;
}

.home-tip .tips-icon { width: 18px; height: 18px; font-size: 11px; }

/* ===== 喜欢榜单（梯度） ===== */
.tier {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.tier-label {
  flex: 0 0 auto;
  width: clamp(54px, 7vw, 68px);
  height: clamp(54px, 7vw, 68px);
  display: grid;
  place-items: center;
  font-family: var(--kai);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 21px);
  border-radius: 55% 45% 50% 50% / 55% 55% 45% 45%;
  background: var(--surface);
  border: 1px solid var(--tier-color, var(--border-strong));
  color: var(--tier-color, var(--text));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.tier-songs {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
}

.tile {
  position: relative;
  width: clamp(60px, 7vw, 92px);
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}

.tile::before {
  content: "♪";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--text-faint);
}

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile:hover {
  transform: scale(1.07);
  border-color: var(--accent);
  box-shadow: 0 10px 26px -10px var(--accent);
}

/* 弹窗：点击封面查看详情（左图 / 右信息） */
.modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 11, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  display: flex;
  width: min(760px, 100%);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.85);
  animation: modalIn .28s var(--ease);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.modal-cover {
  flex: 0 0 auto;
  width: 46%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #0b0d10;
}

.modal-info {
  flex: 1;
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.modal-eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.modal-title {
  font-family: var(--kai);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.modal-row {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

.modal-row .label { flex: 0 0 auto; color: var(--text-faint); }

.modal-link {
  align-self: flex-start;
  margin-top: 12px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #0b0f0c;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s var(--ease);
}

.modal-link:hover { transform: translateY(-2px); }

.modal-link.is-disabled {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-faint);
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(10, 12, 15, 0.55);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.modal-close:hover { background: rgba(10, 12, 15, 0.8); transform: rotate(90deg); }

/* ===== 响应式 ===== */
@media (max-width: 700px) {
  .home-header { flex-direction: column; align-items: flex-start; }
  .choices { flex-direction: column; }
  .choice { min-height: 150px; border-radius: 30px; }
  .choice.liked { flex: 1 1 auto; }
  .right-col { flex-direction: column; }

  .page-header { align-items: flex-start; flex-direction: column; }
  .tips { width: 100%; border-radius: 16px; }

  .tier { gap: 12px; }

  .modal { padding: 16px; }
  .modal-card { flex-direction: column; }
  .modal-cover { width: 100%; }
}

@media (max-width: 560px) {
  .pagination { grid-template-columns: 1fr; justify-items: center; row-gap: 12px; }
  .page-list { grid-column: 1; }
  .page-jump { grid-column: 1; justify-self: center; }
}
