/* =========================================================
   弥绘貘貘 生日应援站 · 梦幻梦境紫主题
   纯前端 / 无外部依赖 / 移动优先响应式
   ========================================================= */

:root {
  /* 月光紫主色板 */
  --bg-0: #140a33;
  --bg-1: #1d1147;
  --bg-2: #2a1a5e;
  --bg-3: #3a2680;
  --lav: #b79bff;
  --lav-soft: #cdb8ff;
  --lav-pale: #e7ddff;
  --cream: #fff4e6;
  --pink: #ffb3d9;
  --pink-soft: #ffd6ec;
  --ink: #ece6ff;
  --ink-mute: #b6a9e0;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(199, 182, 255, 0.22);
  --glow: 0 0 40px rgba(183, 155, 255, 0.35);
  --shadow: 0 18px 50px rgba(10, 4, 35, 0.55);
  --radius: 20px;
  --radius-lg: 28px;
  --maxw: 1180px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(123, 87, 220, 0.35), transparent 60%),
    radial-gradient(900px 600px at 0% 10%, rgba(255, 179, 217, 0.12), transparent 55%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 40%, var(--bg-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--lav); color: #1a0f3d; padding: 10px 16px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ===================== 顶部导航 ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(20, 10, 51, 0.85), rgba(20, 10, 51, 0.45));
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { font-size: 22px; filter: drop-shadow(0 0 8px var(--lav)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-size: 17px; letter-spacing: 0.5px; }
.brand-text small { font-size: 10px; font-weight: 600; color: var(--ink-mute); letter-spacing: 2px; }

.nav { display: flex; gap: 26px; }
.nav a {
  font-size: 14.5px; color: var(--ink-mute); font-weight: 600; position: relative; padding: 6px 0;
  transition: color 0.25s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--lav), var(--pink)); transition: width 0.3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none; width: 42px; height: 38px; border: 1px solid var(--border);
  background: var(--glass); border-radius: 12px; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center; padding: 0;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; padding: 8px 0 14px; gap: 4px; border-top: 1px solid var(--border); }
.mobile-nav a { padding: 12px 4px; color: var(--ink-mute); font-weight: 600; border-radius: 10px; }
.mobile-nav a:hover { background: var(--glass); color: var(--ink); }

/* ===================== 通用按钮 ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; transition: transform 0.2s var(--ease), box-shadow 0.25s, background 0.25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary {
  color: #1c0f44;
  background: linear-gradient(135deg, var(--lav-soft), var(--pink-soft));
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 55px rgba(199, 182, 255, 0.6); }
.btn-ghost {
  color: var(--ink); background: var(--glass); border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--glass-strong); transform: translateY(-2px); border-color: var(--lav); }

/* ===================== Hero ===================== */
.hero {
  position: relative; min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center; padding: clamp(40px, 8vh, 90px) 0 70px;
  overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.dream-bubbles { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 56px);
  align-items: center; width: 100%;
}
.hero-kicker {
  display: inline-block; font-size: 14px; letter-spacing: 1px; color: var(--lav-soft);
  background: var(--glass); border: 1px solid var(--border); padding: 7px 16px; border-radius: 999px;
  margin: 0 0 18px;
}
.hero-title {
  margin: 0; font-weight: 900; line-height: 0.98; letter-spacing: 1px;
  font-size: clamp(44px, 8.5vw, 96px);
  background: linear-gradient(120deg, #fff, var(--lav-soft) 45%, var(--pink) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(183, 155, 255, 0.4));
}
.hero-title .line2 { display: block; }
.hero-sub { margin: 22px 0 30px; color: var(--ink-mute); font-size: clamp(15px, 1.6vw, 18px); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats { list-style: none; display: flex; gap: clamp(18px, 3vw, 40px); padding: 0; margin: 38px 0 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-size: clamp(24px, 3.4vw, 36px); font-weight: 900; color: #fff;
  text-shadow: 0 0 18px rgba(199, 182, 255, 0.6);
}
.hero-stats span { font-size: 12.5px; color: var(--ink-mute); letter-spacing: 1px; }

/* Hero 角色框 */
.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.art-frame {
  position: relative; width: min(420px, 86%); aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 214, 236, 0.25), transparent 55%),
    radial-gradient(100% 100% at 50% 100%, rgba(123, 87, 220, 0.5), transparent 60%),
    linear-gradient(160deg, rgba(60, 38, 128, 0.6), rgba(29, 17, 71, 0.7));
  border: 1px solid var(--border);
  box-shadow: var(--shadow), inset 0 0 60px rgba(183, 155, 255, 0.15);
  overflow: hidden; display: grid; place-items: center;
  animation: floaty 6s ease-in-out infinite;
}
.art-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top;
  z-index: 2; opacity: 0; transition: opacity 1s ease; will-change: opacity, transform;
}
.art-img.is-on { opacity: 1; }
.art-img.is-zoom { animation: art-zoom 9s ease-out forwards; }
@keyframes art-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.art-placeholder { position: absolute; inset: 0; display: grid; place-items: center; gap: 14px; text-align: center; padding: 20px; z-index: 1; }
.art-placeholder-glow {
  position: absolute; width: 70%; height: 70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 182, 255, 0.5), transparent 70%);
  filter: blur(20px); animation: pulse 4s ease-in-out infinite;
}
.art-mascot { position: relative; animation: bob 3.5s ease-in-out infinite; }
.art-hint { position: relative; font-size: 12.5px; color: var(--ink-mute); letter-spacing: 1px; }
.art-floor {
  position: absolute; bottom: -6%; left: 50%; transform: translateX(-50%);
  width: 70%; height: 26px; border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 155, 255, 0.5), transparent 70%); filter: blur(14px);
}

.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; }
.mouse { display: block; width: 26px; height: 42px; border: 2px solid var(--lav-soft); border-radius: 14px; position: relative; }
.wheel { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: var(--lav-soft); border-radius: 2px; transform: translateX(-50%); animation: wheel 1.6s infinite; }

/* ===================== 区块通用 ===================== */
.section { position: relative; padding: clamp(60px, 10vh, 120px) 0; scroll-margin-top: var(--header-h); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(34px, 5vw, 56px); }
.section-kicker { font-size: 13px; letter-spacing: 4px; color: var(--lav-soft); margin: 0 0 10px; font-weight: 700; }
.section-title {
  margin: 0; font-size: clamp(28px, 4.5vw, 46px); font-weight: 900; letter-spacing: 0.5px;
  background: linear-gradient(120deg, #fff, var(--lav-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-desc { margin: 14px 0 0; color: var(--ink-mute); font-size: clamp(14.5px, 1.7vw, 17px); }

/* ===================== 祝福墙 ===================== */
.wish-form {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end;
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(16px, 2.5vw, 24px); backdrop-filter: blur(10px); margin-bottom: 22px;
}
.field { display: flex; flex-direction: column; gap: 7px; flex: 0 0 200px; }
.field-grow { flex: 1 1 320px; }
.field label { font-size: 13px; color: var(--ink-mute); letter-spacing: 0.5px; }
.field input, .field textarea {
  width: 100%; background: rgba(20, 10, 51, 0.55); border: 1px solid var(--border);
  border-radius: 12px; color: var(--ink); padding: 12px 14px; font-size: 15px; resize: vertical;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lav); box-shadow: 0 0 0 3px rgba(183, 155, 255, 0.25); }
.field input::placeholder, .field textarea::placeholder { color: rgba(182, 169, 224, 0.6); }
.wish-form .btn { flex: 0 0 auto; align-self: stretch; }

.wish-filter { display: flex; gap: 10px; margin-bottom: 18px; }
.chip {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--glass); color: var(--ink-mute); font-weight: 700; font-size: 13.5px; transition: 0.25s;
}
.chip.is-active { background: linear-gradient(135deg, var(--lav-soft), var(--pink-soft)); color: #1c0f44; border-color: transparent; }

.wish-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.wish-card {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 18px 16px; backdrop-filter: blur(10px); position: relative; overflow: hidden;
  animation: rise 0.5s var(--ease) both;
}
.wish-card::after {
  content: "✦"; position: absolute; top: 10px; right: 14px; color: var(--lav); opacity: 0.5; font-size: 13px;
}
.wish-card .wc-name { font-weight: 800; font-size: 15px; color: #fff; display: flex; align-items: center; gap: 8px; }
.wish-card .wc-badge { font-size: 10px; background: var(--glass-strong); border: 1px solid var(--border); padding: 2px 8px; border-radius: 999px; color: var(--lav-soft); }
.wish-card .wc-text { margin: 10px 0 14px; color: var(--ink); font-size: 15px; line-height: 1.6; word-break: break-word; }
.wish-card .wc-foot { display: flex; align-items: center; justify-content: space-between; }
.wish-card .wc-time { font-size: 11.5px; color: var(--ink-mute); }
.wish-like {
  display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--border);
  color: var(--ink-mute); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; transition: 0.2s;
}
.wish-like:hover { color: var(--pink); border-color: var(--pink); }
.wish-like.liked { color: #fff; background: linear-gradient(135deg, var(--pink), var(--lav)); border-color: transparent; }
.wish-empty { text-align: center; color: var(--ink-mute); padding: 30px 0; }

/* ===================== 应援打榜 ===================== */
.cheer-boost { text-align: center; margin-bottom: 34px; }
.btn-boost {
  font-size: clamp(16px, 2vw, 20px); padding: 16px 38px; color: #1c0f44;
  background: linear-gradient(135deg, var(--lav-soft), var(--pink-soft));
  box-shadow: var(--glow); position: relative; overflow: hidden; user-select: none;
}
.btn-boost:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(199, 182, 255, 0.65); }
.btn-boost .boost-heart { font-size: 1.2em; transition: transform 0.2s; display: inline-block; }
.btn-boost:active .boost-heart { transform: scale(1.4); }
.boost-tip { margin: 12px 0 0; color: var(--ink-mute); font-size: 13.5px; }

.cheer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin-inline: auto; counter-reset: rank; }
.cheer-row {
  display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 14px;
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; backdrop-filter: blur(10px); animation: rise 0.4s var(--ease) both;
}
.cheer-row.is-done { border-color: rgba(199, 182, 255, 0.5); }
.cheer-rank {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; font-size: 17px; color: #1c0f44;
  background: linear-gradient(135deg, var(--lav-soft), var(--pink-soft));
}
.cheer-row:nth-child(1) .cheer-rank { background: linear-gradient(135deg, #ffe7a3, #ffb3d9); box-shadow: 0 0 22px rgba(255, 214, 143, 0.6); }
.cheer-row:nth-child(2) .cheer-rank { background: linear-gradient(135deg, #e7ddff, #cdb8ff); }
.cheer-row:nth-child(3) .cheer-rank { background: linear-gradient(135deg, #ffd6b0, #ffb3d9); }
.cheer-main { min-width: 0; }
.cheer-name { font-weight: 800; font-size: 15px; color: #fff; }
.cheer-bar { height: 8px; border-radius: 999px; background: rgba(20, 10, 51, 0.6); margin-top: 8px; overflow: hidden; }
.cheer-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--lav), var(--pink)); width: 0; transition: width 0.6s var(--ease); box-shadow: 0 0 14px rgba(199, 182, 255, 0.6); }
.cheer-val { font-weight: 900; font-size: 18px; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cheer-val small { font-size: 11px; color: var(--ink-mute); font-weight: 600; }
.cheer-btn {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--lav);
  background: linear-gradient(135deg, var(--lav-soft), var(--pink-soft));
  color: #1c0f44; font-weight: 800; font-size: 13px; cursor: pointer;
  white-space: nowrap; transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}
.cheer-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 18px rgba(199, 182, 255, 0.55); }
.cheer-btn:disabled { opacity: 0.55; cursor: default; filter: grayscale(0.3); }

/* ===================== 特效实验室 ===================== */
.fx { text-align: center; }
.fx-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 26px; }
.fx-canvas { width: 100%; height: 280px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(20, 10, 51, 0.35); display: block; }

/* ===================== 关于 ===================== */
.about { background: linear-gradient(180deg, transparent, rgba(58, 38, 128, 0.16), transparent); }
.about-inner { display: flex; justify-content: center; }
.about-card {
  max-width: 680px; width: 100%; text-align: center;
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 50px); backdrop-filter: blur(12px); box-shadow: var(--shadow);
}
.about-title { margin: 0 0 8px; font-size: clamp(24px, 3.5vw, 36px); font-weight: 900; background: linear-gradient(120deg, #fff, var(--lav-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-lead { margin: 0 0 22px; color: var(--lav-soft); font-weight: 700; }
.about-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; text-align: left; }
.about-list li { display: flex; gap: 12px; align-items: center; background: rgba(20, 10, 51, 0.4); border: 1px solid var(--border); border-radius: 14px; padding: 13px 16px; font-size: 15px; }
.about-list span { font-size: 20px; }

/* ===================== 页脚 ===================== */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; background: rgba(20, 10, 51, 0.5); }
.footer-inner { text-align: center; display: grid; gap: 8px; }
.footer-brand { font-weight: 800; margin: 0; }
.footer-note { margin: 0; color: var(--ink-mute); font-size: 13px; }
.footer-copy { margin: 0; color: var(--ink-mute); font-size: 12.5px; }

/* ===================== 特效图层 ===================== */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 150; overflow: hidden; }
.confetti, .heart, .meteor, .bubble { position: absolute; will-change: transform, opacity; }

/* ===================== 动画 ===================== */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes wheel { 0% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 14px); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
@keyframes bubbleUp {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: translateY(-110vh) scale(1.15); opacity: 0; }
}

/* ===================== 响应式 ===================== */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.is-open { display: flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-stats { display: inline-flex; }
  .art-frame { width: min(320px, 78%); }
}

@media (max-width: 560px) {
  .count-grid { gap: 8px; }
  .count-cell { padding: 14px 6px; }
  .count-label { letter-spacing: 1px; font-size: 11px; }
  .wish-form { flex-direction: column; align-items: stretch; }
  .field { flex: 1 1 auto; }
  .wish-form .btn { width: 100%; }
  .hero-stats { gap: 18px; }
  .cheer-row { grid-template-columns: 38px 1fr auto; gap: 10px; padding: 12px 14px; }
  .cheer-btn { grid-column: 1 / -1; justify-self: end; }
  .cheer-rank { width: 38px; height: 38px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .art-frame, .art-mascot, .art-placeholder-glow { animation: none !important; }
}

/* ================= 全屏特效元素细化 ================= */
.confetti { width: 10px; height: 14px; border-radius: 2px; }
.meteor {
  width: 3px; height: 120px; border-radius: 3px; transform: rotate(35deg);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 80%, #fff);
  filter: drop-shadow(0 0 6px #cdb8ff);
}
.heart { font-size: 22px; line-height: 1; }
.bubble {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(199, 182, 255, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 12px rgba(199, 182, 255, 0.4);
}
.sakura {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(255, 183, 213, 0.5));
  will-change: transform, opacity;
  user-select: none;
}
.firefly {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
}

/* ================= 视频厅 ================= */
.video-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.video-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
/* 按需加载占位 + 切换 loading 态 */
.video-placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px;
  text-align: center; padding: 20px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(123, 87, 220, 0.28), transparent 55%),
    linear-gradient(160deg, rgba(29, 17, 71, 0.9), rgba(20, 10, 51, 0.95));
}
.vp-ph-title { margin: 0; font-size: clamp(16px, 2.4vw, 22px); font-weight: 900; color: #fff; }
.vp-ph-sub { margin: 0; color: var(--ink-mute); font-size: 13.5px; line-height: 1.7; }
.video-stage.is-loading::after {
  content: "加载中…"; position: absolute; inset: 0; display: grid; place-content: center;
  background: rgba(10, 4, 30, 0.82); color: var(--lav-soft); font-weight: 700; letter-spacing: 1px;
  z-index: 2; animation: pulse 1.2s ease-in-out infinite;
}
.video-playlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
.vp-item {
  text-align: left; background: var(--glass); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 14px; color: var(--ink); transition: 0.25s; cursor: pointer; font: inherit;
}
.vp-item:hover, .vp-item.is-active { border-color: var(--lav); background: var(--glass-strong); }
.vp-title { font-weight: 700; font-size: 14px; line-height: 1.4; }
.vp-meta { font-size: 12px; color: var(--ink-mute); margin-top: 4px; }

/* ================= 壁纸展示 ================= */
.wallpaper { background: linear-gradient(180deg, transparent, rgba(58, 38, 128, 0.16), transparent); }
.wp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.wp-card {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); cursor: pointer; background: var(--glass);
}
.wp-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.4s var(--ease); }
.wp-card.is-landscape img { aspect-ratio: 16 / 9; }
.wp-card:hover img, .wp-card:focus-visible img { transform: scale(1.05); }
.wp-card:focus-visible { outline: 2px solid var(--lav); outline-offset: 2px; }
.wp-cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; background: linear-gradient(transparent, rgba(20, 10, 51, 0.85));
  font-weight: 700; font-size: 14px;
}
.wp-tag { font-size: 11px; color: var(--lav-soft); border: 1px solid var(--border); padding: 2px 9px; border-radius: 999px; }

/* ================= 灯箱 ================= */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(10, 4, 30, 0.92); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.25s;
}
.lightbox[hidden] { display: none; }
.lightbox.show { opacity: 1; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 16px; box-shadow: var(--shadow); }
.lb-close {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass-strong); border: 1px solid var(--border); color: #fff; font-size: 18px; cursor: pointer;
}
.lb-bar { position: absolute; bottom: 26px; }

/* ================= 新增板块响应式 ================= */
@media (max-width: 560px) {
  .video-playlist { grid-template-columns: 1fr 1fr; }
  .wp-grid { grid-template-columns: 1fr 1fr; }
  .lightbox img { max-height: 70vh; }
  .song-bar { flex-direction: column; align-items: stretch; }
  .song-bar .btn { width: 100%; }
}

/* ================= 悬浮音乐播放器 ================= */
.music-player {
  position: fixed; right: 18px; bottom: 18px; z-index: 160;
  width: min(300px, calc(100vw - 36px));
  display: flex; gap: 12px; align-items: center; padding: 12px 14px;
  background: rgba(20, 10, 51, 0.72); border: 1px solid var(--border);
  border-radius: 18px; backdrop-filter: blur(12px); box-shadow: var(--shadow);
}
.mp-toggle {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, var(--lav-soft), var(--pink-soft));
  color: #1c0f44; font-size: 15px; display: grid; place-items: center;
  box-shadow: var(--glow);
}
.mp-toggle:hover { transform: translateY(-1px); }
.mp-body { flex: 1; min-width: 0; display: grid; gap: 7px; }
.mp-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-mute); }
.mp-title { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mp-progress, .mp-volume { width: 100%; accent-color: #cdb8ff; height: 4px; cursor: pointer; }
.mp-bottom { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mp-vol-ico { flex: 0 0 auto; }

/* ================= 点歌歌单 ================= */
.songlist { background: linear-gradient(180deg, transparent, rgba(58, 38, 128, 0.16), transparent); }
.song-bar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(14px, 2.5vw, 20px); backdrop-filter: blur(10px); max-width: 760px; margin: 0 auto 12px;
}
.song-input {
  flex: 1 1 280px; min-width: 0; background: rgba(20, 10, 51, 0.55);
  border: 1px solid var(--border); border-radius: 12px; color: var(--ink);
  padding: 12px 14px; font-size: 15px; font-weight: 600;
}
.song-input:focus { outline: none; border-color: var(--lav); box-shadow: 0 0 0 3px rgba(183, 155, 255, 0.25); }
.song-input::placeholder { color: rgba(182, 169, 224, 0.6); }
.song-bar .btn { flex: 0 0 auto; }
.song-tip { text-align: center; color: var(--ink-mute); font-size: 13.5px; margin: 0 0 26px; }

.song-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.song-item {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: var(--glass); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; color: var(--ink); transition: 0.25s;
  animation: rise 0.4s var(--ease) both;
}
.song-item:hover, .song-item:focus-visible { border-color: var(--lav); background: var(--glass-strong); transform: translateY(-2px); }
.song-item:focus-visible { outline: 2px solid var(--lav); outline-offset: 2px; }
.song-dot { font-size: 18px; }
.song-name { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-go { font-size: 12.5px; color: var(--lav-soft); font-weight: 700; white-space: nowrap; }

/* ================= Toast 提示 ================= */
.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 16px);
  z-index: 220; background: rgba(20, 10, 51, 0.92); border: 1px solid var(--lav);
  color: var(--ink); padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 14px;
  box-shadow: var(--glow); opacity: 0; transition: opacity 0.25s, transform 0.25s; pointer-events: none;
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .music-player { right: 12px; bottom: 12px; padding: 10px 12px; }
}

/* ===================== 多页面：导航高亮 / 页头 / 入口 / 歌单 / 录播 / 播放弹窗 ===================== */

/* 当前页导航高亮 */
.nav a[aria-current="page"], .mobile-nav a[aria-current="page"] {
  color: #fff; background: linear-gradient(135deg, var(--lav), var(--pink-soft));
  box-shadow: 0 6px 18px rgba(183, 155, 255, 0.35);
}

/* 子页面页头 */
.subhero {
  position: relative; overflow: hidden;
  padding: clamp(92px, 14vw, 150px) 0 clamp(38px, 7vw, 66px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(123, 87, 220, 0.42), transparent 60%),
    linear-gradient(180deg, rgba(42, 26, 94, 0.65), rgba(20, 10, 51, 0.2));
}
.subhero .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.subhero--static { background: radial-gradient(900px 480px at 50% -10%, rgba(123, 87, 220, 0.35), transparent 60%), var(--bg, #160a33); }
.subhero-inner { position: relative; text-align: center; }
.crumb { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-mute); font-size: 13px; margin-bottom: 14px; }
.crumb a { color: var(--lav-soft); text-decoration: none; }
.crumb a:hover { color: #fff; }
.crumb span { opacity: 0.5; }
.subhero-title {
  font-size: clamp(30px, 6.4vw, 54px); font-weight: 900; line-height: 1.05; margin: 0 0 12px;
  color: #fff; text-shadow: 0 0 28px rgba(199, 182, 255, 0.5);
}
.subhero-sub { color: var(--ink-mute); font-size: clamp(14px, 2.2vw, 17px); margin: 0; }

/* 首页入口卡片 */
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 24px); }
.entry-card {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink);
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow); transition: 0.3s var(--ease); position: relative; overflow: hidden;
}
.entry-card::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: 0.3s;
  background: radial-gradient(420px 200px at 80% 0%, rgba(255, 179, 217, 0.18), transparent 70%);
}
.entry-card:hover, .entry-card:focus-visible { transform: translateY(-6px); border-color: var(--lav); box-shadow: var(--glow); }
.entry-card:hover::after, .entry-card:focus-visible::after { opacity: 1; }
.entry-card:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; }
.entry-ico { font-size: 38px; }
.entry-card h3 { margin: 0; font-size: clamp(18px, 2.4vw, 22px); color: #fff; }
.entry-card p { margin: 0; color: var(--ink-mute); font-size: 14.5px; line-height: 1.7; flex: 1; }
.entry-go { font-weight: 800; color: var(--lav-soft); font-size: 14px; }

/* 歌单 / 录播 网格 */
.song-grid, .rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(14px, 2vw, 22px); }
.song-card, .rec-card {
  display: flex; flex-direction: column; gap: 0; text-decoration: none; color: var(--ink);
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); transition: 0.3s var(--ease); cursor: pointer;
}
.song-card:hover, .rec-card:hover, .song-card:focus-visible, .rec-card:focus-visible { transform: translateY(-6px); border-color: var(--lav); box-shadow: var(--glow); }
.song-card:focus-visible, .rec-card:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; }
.song-card.is-empty { opacity: 0.78; }
.sc-cover, .rec-cover {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(199, 182, 255, 0.55), transparent 55%),
    radial-gradient(120% 120% at 90% 90%, rgba(255, 179, 217, 0.5), transparent 55%),
    linear-gradient(135deg, #3a2a6b, #241353);
}
.sc-play, .rec-play {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  font-size: 22px; color: #2a1a5e; background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); transition: 0.3s var(--ease); padding-left: 4px;
}
.song-card:hover .sc-play, .rec-card:hover .rec-play { transform: scale(1.12); background: #fff; }
.song-card.is-empty .sc-play { background: rgba(255, 255, 255, 0.5); color: #2a1a5e; }
.sc-body, .rec-body { padding: 16px 18px 18px; }
.sc-title, .rec-title { margin: 0 0 6px; font-size: 16.5px; color: #fff; line-height: 1.4; }
.sc-meta, .rec-meta { margin: 0; font-size: 13px; color: var(--lav-soft); font-weight: 600; }

/* 录播：按月分组标题（横跨整行） */
.rec-month {
  grid-column: 1 / -1; margin: 8px 0 2px; padding-left: 4px;
  font-size: 14px; font-weight: 800; letter-spacing: 1px; color: var(--pink-soft);
  display: flex; align-items: center; gap: 10px;
}
.rec-month::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }

/* 录播卡片：直播日期徽标 */
.rec-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 12px; font-weight: 800; letter-spacing: 0.5px; color: #fff;
  background: rgba(20, 10, 50, 0.62); border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(4px);
}

.empty-hint { text-align: center; color: var(--ink-mute); padding: 40px 0; font-size: 15px; }

/* 录播刷新栏 */
.rec-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.rec-sync { font-size: 13px; color: var(--ink-mute); min-width: 0; }
.rec-toolbar .btn { padding: 7px 16px; font-size: 13px; }
.rec-toolbar .btn:disabled { opacity: 0.5; cursor: default; }

.rec-filter {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 18px;
}
.rec-filter .chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.rec-filter .chip:hover { background: rgba(199, 182, 255, 0.12); }
.rec-filter .chip.is-active {
  background: linear-gradient(135deg, var(--lav-soft), var(--pink-soft));
  color: #1c0f44;
  border-color: transparent;
  font-weight: 600;
}

/* B 站播放弹窗 */
.player-modal {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(1200px 700px at 50% 30%, rgba(123, 87, 220, 0.4), transparent 60%), rgba(8, 3, 24, 0.93);
  backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.3s var(--ease);
}
.player-modal[hidden] { display: none; }
.player-modal.show { opacity: 1; }
.pm-inner { width: min(960px, 94vw); }
.pm-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); box-shadow: var(--glow);
}
.pm-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pm-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.pm-title { color: var(--ink); font-weight: 700; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-close {
  position: absolute; top: 14px; right: 16px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  background: var(--glass-strong); border: 1px solid var(--border); color: #fff; font-size: 17px; cursor: pointer;
}
.pm-close:hover { border-color: var(--lav); }

@media (max-width: 760px) {
  .entry-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .song-grid, .rec-grid { grid-template-columns: 1fr 1fr; }
  .subhero-title { font-size: clamp(26px, 8vw, 38px); }
}
@media (max-width: 400px) {
  .song-grid, .rec-grid { grid-template-columns: 1fr; }
}

/* ================= 歌单页：标题流光 ================= */
.subhero-title.is-shine {
  background: linear-gradient(110deg, #c9b8ff 18%, #ffd6ec 38%, #ffffff 50%, #ffd6ec 62%, #c9b8ff 82%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: title-shine 5.5s linear infinite;
  filter: drop-shadow(0 2px 18px rgba(201, 184, 255, .35));
}
@keyframes title-shine {
  from { background-position: 220% 0; }
  to { background-position: -220% 0; }
}

/* ================= 歌单页：工具条（语言 / 模式 / 随机 / 搜索） ================= */
.song-bar { position: relative; padding: 0 0 6px; }
.song-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.song-tabs { display: inline-flex; gap: 4px; }
.song-tab {
  appearance: none; border: 0; cursor: pointer; padding: 7px 18px; border-radius: 999px;
  font: inherit; font-size: 14.5px; font-weight: 700; letter-spacing: 1px;
  color: var(--ink-mute); background: transparent; position: relative;
  transition: color .3s var(--ease), text-shadow .3s var(--ease);
}
.song-tab::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 2px;
  background: linear-gradient(90deg, #c9b8ff, #ffb3d9); border-radius: 2px;
  transition: left .3s var(--ease), right .3s var(--ease);
}
.song-tab:hover { color: #fff; }
.song-tab.is-active {
  color: #ffe6f5;
  background: linear-gradient(135deg, rgba(201, 184, 255, .16), rgba(255, 179, 217, .16));
  text-shadow: 0 0 14px rgba(255, 214, 236, .9);
  animation: tab-glow 2.6s ease-in-out infinite;
}
.song-tab.is-active::after { left: 18%; right: 18%; }
@keyframes tab-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(201, 184, 255, .35), inset 0 0 8px rgba(255, 179, 217, .18); }
  50% { box-shadow: 0 0 20px rgba(201, 184, 255, .7), inset 0 0 14px rgba(255, 179, 217, .32); }
}
.sa-group { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .045); }
.sa-mode {
  appearance: none; border: 0; cursor: pointer; padding: 6px 16px; border-radius: 999px;
  font: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: 1px;
  color: var(--ink-mute); background: transparent; transition: .3s var(--ease);
}
.sa-mode:hover { color: #fff; }
.sa-mode.is-active {
  color: #2a1a5e; background: linear-gradient(135deg, #c9b8ff, #ffb3d9);
  box-shadow: 0 0 16px rgba(201, 184, 255, .55), 0 0 30px rgba(255, 179, 217, .35);
}
.sa-random {
  appearance: none; border: 0; cursor: pointer; padding: 8px 20px; border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 800; letter-spacing: 1px; color: #fff;
  background: linear-gradient(135deg, #7c5cff, #ff6fb5);
  box-shadow: 0 4px 18px rgba(124, 92, 255, .45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sa-random:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 26px rgba(124, 92, 255, .6); }
.sa-random:active { transform: scale(.96); }
.sa-search {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 200px; max-width: 300px;
  border-bottom: 1px solid rgba(178, 150, 255, .4); padding: 7px 2px;
  transition: border-color .3s var(--ease);
}
.sa-search:focus-within { border-bottom-color: var(--lav); }
.ss-ico { color: var(--lav-soft); font-size: 16px; line-height: 1; transform: rotate(-45deg); }
.sa-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 14.5px; }
.sa-search input::placeholder { color: var(--ink-mute); }
.song-count { margin: 14px 0 22px; font-size: 13px; color: var(--ink-mute); letter-spacing: .5px; }
.song-source { margin-left: 8px; font-size: 11.5px; color: var(--pink-soft); opacity: .9; letter-spacing: .5px; }

/* ================= 歌单页：随机选歌（翻牌卡片） ================= */
.song-random { padding: 0 0 clamp(30px, 5vw, 56px); }
.sr-stage { display: flex; justify-content: center; }
.sr-card {
  position: relative; width: min(400px, 92vw); height: 210px;
  perspective: 900px; cursor: pointer; outline: none;
}
.sr-side {
  position: absolute; inset: 0; border-radius: 20px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .7s var(--ease);
  border: 1px solid var(--border);
}
.sr-back {
  background: radial-gradient(120% 130% at 20% 10%, rgba(199, 182, 255, .5), transparent 55%),
              radial-gradient(120% 130% at 90% 90%, rgba(255, 179, 217, .45), transparent 55%),
              linear-gradient(135deg, #3a2a6b, #241353);
  transform: rotateY(0deg);
}
.sr-front {
  background: linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04));
  backdrop-filter: blur(10px); border-color: var(--lav);
  box-shadow: 0 0 26px rgba(201, 184, 255, .35), inset 0 0 30px rgba(255, 179, 217, .12);
  transform: rotateY(180deg);
}
.sr-card.is-flipped .sr-back { transform: rotateY(180deg); }
.sr-card.is-flipped .sr-front { transform: rotateY(360deg); }
.sr-emoji { font-size: 42px; animation: sr-float 2.6s ease-in-out infinite; }
@keyframes sr-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.sr-hint { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.sr-tip { font-size: 12.5px; color: var(--lav-soft); }
.sr-note { font-size: 12.5px; font-weight: 700; letter-spacing: 2px; color: var(--pink-soft); }
.sr-title { margin: 0; font-size: clamp(20px, 4vw, 26px); color: #fff; line-height: 1.3; }
.sr-artist { margin: 0; font-size: 14px; color: var(--lav-soft); }
.sr-go {
  margin-top: 6px; padding: 7px 18px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: #2a1a5e; background: linear-gradient(135deg, #c9b8ff, #ffb3d9);
  box-shadow: 0 4px 16px rgba(201, 184, 255, .4);
}

/* ================= 歌单页：列表模式 ================= */
.song-list { display: flex; flex-direction: column; gap: 8px; }
.sl-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border);
  cursor: pointer; transition: .25s var(--ease); position: relative; overflow: hidden;
}
.sl-row:hover, .sl-row:focus-visible { background: rgba(201, 184, 255, .12); border-color: var(--lav); transform: translateX(4px); }
.sl-row:focus-visible { outline: 2px solid var(--lav); outline-offset: 2px; }
.sl-idx { font-size: 13px; font-weight: 800; color: var(--pink-soft); min-width: 30px; font-variant-numeric: tabular-nums; }
.sl-title { flex: 1; font-size: 15.5px; color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-artist { font-size: 13px; color: var(--lav-soft); max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-go { font-size: 12.5px; font-weight: 800; color: var(--lav-soft); opacity: 0; transform: translateX(-6px); transition: .25s var(--ease); }
.sl-row:hover .sl-go { opacity: 1; transform: none; }
.sl-row.is-reveal { opacity: 0; transform: translateY(14px); }
.sl-row.is-reveal.is-in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease), background .25s var(--ease), border-color .25s var(--ease); }

/* ================= 歌单页：弹幕模式 ================= */
.song-danmaku { position: relative; }
.dm-stage { position: relative; height: 320px; overflow: hidden; border-radius: 18px;
  background: radial-gradient(120% 140% at 50% 0%, rgba(123, 87, 220, .18), transparent 60%), rgba(10, 5, 30, .35);
  border: 1px solid var(--border);
}
.dm-stage:hover .dm-item { animation-play-state: paused; }
.dm-track { position: absolute; left: 0; right: 0; height: 44px; display: flex; align-items: center; }
.dm-item {
  position: absolute; left: 100%; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px; white-space: nowrap; cursor: pointer;
  background: linear-gradient(135deg, rgba(124, 92, 255, .55), rgba(255, 111, 181, .5));
  border: 1px solid rgba(201, 184, 255, .5);
  box-shadow: 0 4px 14px rgba(124, 92, 255, .35);
  color: #fff; font-size: 13.5px; font-weight: 600;
  animation-name: dm-move; animation-timing-function: linear; animation-fill-mode: forwards;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.dm-item:hover, .dm-item:focus-visible { transform: scale(1.06); box-shadow: 0 6px 22px rgba(255, 111, 181, .6); outline: none; }
@keyframes dm-move {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100vw - 120%)); }
}
.dm-badge { font-size: 12px; }
.dm-name { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.dm-artist { font-size: 12px; opacity: .8; }
.dm-hint { text-align: center; font-size: 12.5px; color: var(--ink-mute); margin: 14px 0 0; letter-spacing: 1px; }

/* ================= 歌单页：卡片动效（入场渐显 / 扫光 / 涟漪） ================= */
.song-card { position: relative; }
.song-card.is-reveal { opacity: 0; transform: translateY(22px); }
.song-card.is-reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease),
              box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.song-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .26) 50%, transparent 60%);
  transform: translateX(-130%); transition: transform .9s var(--ease);
}
.song-card:hover::after, .song-card:focus-visible::after { transform: translateX(130%); }
.song-card.is-reveal.is-in::after { animation: card-shine 1.15s ease-out .25s; }
@keyframes card-shine {
  from { transform: translateX(-130%); }
  to { transform: translateX(130%); }
}
.sc-ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 2;
  background: radial-gradient(circle, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%);
  animation: ripple-out .72s ease-out forwards;
}
@keyframes ripple-out {
  from { transform: scale(0); opacity: .8; }
  to { transform: scale(1); opacity: 0; }
}

/* ================= 全局修复：hidden 必须真正隐藏 =================
   某些容器显式设置了 display:grid/flex，会覆盖 HTML hidden 属性（UA 样式 [hidden]{display:none} 优先级低于作者样式），
   导致「三模式互斥 / 弹窗/菜单收起」失效。用 !important 统一兜底。 */
[hidden] { display: none !important; }

/* ================= 播放器增强：切歌按钮 + 播放列表 ================= */
.mp-controls { display: flex; align-items: center; gap: 6px; }
.mp-controls .mp-progress { flex: 1; width: auto; }
.mp-btn {
  appearance: none; border: 0; cursor: pointer; background: transparent;
  color: var(--lav-soft); font-size: 13px; line-height: 1; padding: 5px 6px;
  border-radius: 8px; transition: .25s var(--ease);
}
.mp-btn:hover { color: #fff; background: rgba(201, 184, 255, .16); }
.mp-list-btn { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; letter-spacing: .5px; }
.mp-playlist {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  width: min(330px, calc(100vw - 40px)); max-height: 264px; overflow-y: auto;
  background: rgba(20, 10, 51, .97); border: 1px solid var(--border); border-radius: 14px;
  padding: 8px; z-index: 170; box-shadow: 0 14px 38px rgba(0, 0, 0, .55);
  backdrop-filter: blur(14px); scrollbar-width: thin;
}
.mp-playlist::-webkit-scrollbar { width: 6px; }
.mp-playlist::-webkit-scrollbar-thumb { background: rgba(201, 184, 255, .35); border-radius: 3px; }
.mp-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  cursor: pointer; color: var(--ink); transition: .2s var(--ease);
}
.mp-item:hover { background: rgba(201, 184, 255, .14); color: #fff; }
.mp-item.is-current { background: linear-gradient(135deg, rgba(201, 184, 255, .22), rgba(255, 179, 217, .18)); color: #fff; }
.mp-item-idx { font-size: 11.5px; font-weight: 800; color: var(--pink-soft); min-width: 22px; font-variant-numeric: tabular-nums; }
.mp-item-title { flex: 1; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-item-now { color: var(--pink-soft); font-size: 11px; min-width: 12px; }
.mp-empty { padding: 14px; text-align: center; color: var(--ink-mute); font-size: 13px; }

/* 壁纸缩略图占位（加载失败时显示，避免回退大图转圈） */
.wp-card .wp-img-ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 46px; color: var(--lav-soft);
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(199, 182, 255, 0.28), transparent 55%),
    radial-gradient(120% 120% at 90% 90%, rgba(255, 179, 217, 0.22), transparent 55%),
    linear-gradient(135deg, #3a2a6b, #241353);
}
