/* 全局语音播放器 */
.rc-player { position: relative; z-index: 800; }

.rc-mini {
  position: fixed; z-index: 800; left: 10px; right: 10px;
  bottom: calc(var(--tabbar-h, 0px) + 10px + var(--safe-bottom));
  height: 60px; padding: 8px 10px 8px 8px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.8); border-radius: 18px;
  box-shadow: 0 12px 34px rgba(90,46,27,.18);
  opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: opacity .25s, transform .25s;
}
.rc-mini.has-track { opacity: 1; pointer-events: auto; transform: none; }
.rc-mini-cover { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; background: var(--brand-100); }
.rc-mini.playing .rc-mini-cover { box-shadow: 0 0 0 3px rgba(194,112,60,.18); }
.rc-mini-info { line-height: 1.35; }
.rc-mini-title { display: block; font-size: 13.5px; font-weight: 700; }
.rc-mini-sub { display: block; font-size: 11px; color: var(--ink-500); }
.rc-mini-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--brand-700); flex: none; }
.rc-mini-btn:hover { background: var(--brand-50); }
.rc-mini-btn:first-of-type { background: var(--brand-600); color: #fff; width: 38px; height: 38px; }
.rc-mini-btn:first-of-type:hover { background: var(--brand-700); }
/* 右上角关闭角标：浮在卡片外侧，不挤压标题与控制按钮 */
.rc-mini-close { position: absolute; top: -10px; right: -8px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--ink-400); border: 1px solid rgba(90,46,27,.12);
  box-shadow: 0 4px 12px rgba(90,46,27,.2); }
.rc-mini-close:hover, .rc-mini-close:active { color: var(--brand-700); background: var(--brand-50); }

.rc-full {
  position: fixed; inset: 0; z-index: 920; overflow: hidden;
  background: linear-gradient(170deg, #5a2e1b 0%, #7a3e23 45%, #3b2a20 100%);
  color: #fff; transform: translateY(101%); transition: transform .34s cubic-bezier(.22,.8,.3,1);
  display: flex; flex-direction: column;
}
.rc-full.show { transform: none; }
.rc-full-bg { position: absolute; inset: -40px; background-size: cover; background-position: center;
  filter: blur(60px) brightness(.55); opacity: .5; }
.rc-full::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(90,46,27,.35), rgba(59,42,32,.85)); }
.rc-full-inner { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column;
  padding: calc(16px + var(--safe-top)) 26px 36px; max-width: 520px; width: 100%; margin: 0 auto; overflow-y: auto; }
/* 内容超出时不压缩各区块，避免标题与讲解词被挤到一起或截断 */
.rc-full-inner > * { flex: none; }
.rc-full-head { height: 44px; font-size: 15px; font-weight: 600; letter-spacing: 1px; }
.rc-full-head button { color: #fff; width: 40px; height: 40px; display: grid; place-items: center; opacity: .9; }
.rc-head-actions { display: flex; align-items: center; gap: 2px; }
.rc-disc-wrap { padding: 18px 0 22px; }
.rc-disc { width: min(58vw, 250px); height: min(58vw, 250px); border-radius: 50%; padding: 12px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.16), rgba(255,255,255,.03) 70%);
  box-shadow: 0 20px 60px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.16); }
.rc-disc img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 6px solid rgba(59,42,32,.65); }
.rc-full-title { font-size: 21px; font-weight: 700; text-align: center; font-family: var(--serif); letter-spacing: 1px; }
.rc-full-sub { text-align: center; font-size: 12px; opacity: .7; margin-top: 4px; }
.rc-progress { margin-top: 22px; }
.rc-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.22); position: relative; cursor: pointer; margin-bottom: 8px; }
.rc-track-fill { height: 100%; border-radius: 4px; background: var(--gold-300); width: 0; }
.rc-track-dot { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; transform: translate(-50%,-50%); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.rc-progress .muted { color: rgba(255,255,255,.6); font-size: 11px; }
.rc-controls { gap: 28px; margin: 16px 0 18px; }
.rc-controls button { color: #fff; width: 44px; height: 44px; display: grid; place-items: center; opacity: .9; }
.rc-play-main { width: 62px !important; height: 62px !important; border-radius: 50%; background: #fff; color: var(--brand-800) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 1 !important; }
.rc-tools { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.rc-tools .chip { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); font-size: 12px; }
.rc-tools .chip.on { background: var(--gold-500); border-color: var(--gold-500); color: #fff; }
/* 讲解词完整显示，按段落排版，可随播放器一起上下滚动 */
.rc-intro { margin-top: 18px; font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.86);
  text-align: justify; word-break: break-word; }
.rc-intro p { margin: 0 0 12px; text-indent: 2em; }
.rc-intro p:last-child { margin-bottom: 0; }

.rc-playlist {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; max-height: 62%;
  overflow-y: auto; padding: 18px 22px calc(24px + var(--safe-bottom));
  background: #3b2a20; border-radius: 24px 24px 0 0; box-shadow: 0 -16px 40px rgba(0,0,0,.3);
  transform: translateY(101%); transition: transform .28s cubic-bezier(.22,.8,.3,1);
}
.rc-playlist.show { transform: none; }
.rc-panel-head { margin-bottom: 12px; font-size: 14px; }
.rc-panel-head button { color: #fff; opacity: .8; }
.rc-playlist-item { display: flex; align-items: center; gap: 12px; padding: 11px 8px;
  border-radius: 12px; font-size: 13.5px; color: rgba(255,255,255,.85); cursor: pointer; }
.rc-playlist-item:hover { background: rgba(255,255,255,.07); }
.rc-playlist-item.on { color: var(--gold-300); background: rgba(212,162,76,.12); }
.rc-playlist-item small { font-size: 11px; }
.rc-playlist-num { width: 24px; text-align: center; color: rgba(255,255,255,.55); flex: none; }

@media (min-width: 720px) {
  .rc-mini { left: auto; right: 24px; width: 380px; }
}
