/* 拾光 · 家庭影院 */

.cn-head { align-items: flex-end; }

/* ---------- 分类标签 ---------- */
.cn-tabs {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  gap: 4px;
  margin: 0 0 26px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(243, 238, 228, .96) 62%, rgba(243, 238, 228, .82));
  backdrop-filter: blur(14px);
  overflow-x: auto;
  scrollbar-width: none;
}
.cn-tabs::-webkit-scrollbar { display: none; }
.cn-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.cn-tab:hover { color: var(--ink); background: rgba(36, 32, 26, .05); }
.cn-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fbf6ec;
}
.cn-tab .icon { opacity: .8; }

.cn-tab-body { min-height: 300px; animation: pagein .35s cubic-bezier(.2, .8, .2, 1); }

/* ---------- 扫描提示 ---------- */
.cn-scan-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: -12px 0 22px;
  padding: 12px 18px 13px;
  border-radius: 14px;
  background: var(--night);
  color: var(--night-text);
  font-size: 12.5px;
  position: relative;
  overflow: hidden;
}
.cn-scan-banner .loader { width: 14px; height: 14px; border-color: rgba(255, 255, 255, .2); border-top-color: var(--gold); }
.cn-scan-percent { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--gold); }
.cn-scan-line { flex: 0 0 100%; height: 2px; margin-top: 2px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.cn-scan-line i { display: block; height: 100%; background: var(--gold); transition: width .5s ease; }

/* ---------- 通用标题 ---------- */
.cn-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.cn-eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.cn-shelf { margin-bottom: 38px; }
.cn-shelf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}
.cn-shelf-head h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .05em;
}
.cn-shelf-head h3 small {
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--faint);
}
.cn-shelf-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 11.5px;
  transition: color .18s ease;
}
.cn-shelf-more:hover { color: var(--accent); }
.cn-shelf-count { font-size: 11px; color: var(--faint); letter-spacing: .08em; }
.cn-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.7;
  background: rgba(251, 248, 241, .4);
}
.cn-tip .icon { color: var(--moss); margin-top: 2px; }

/* ---------- 首页主视觉 ---------- */
.cn-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 40px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--night);
  color: var(--night-text);
  isolation: isolate;
}
.cn-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 32%;
  transform: scale(1.02);
  filter: saturate(.92);
  z-index: -3;
}
.cn-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(18, 15, 11, .94) 0%, rgba(18, 15, 11, .78) 42%, rgba(18, 15, 11, .18) 78%, rgba(18, 15, 11, .32) 100%),
    linear-gradient(0deg, rgba(18, 15, 11, .9) 0%, transparent 55%);
}
.cn-hero-body {
  width: min(600px, 68%);
  padding: 44px 48px 40px;
}
.cn-hero .cn-eyebrow { color: var(--gold); }
.cn-hero h2 {
  margin: 13px 0 10px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .04em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .3);
}
.cn-hero-sub { color: rgba(240, 231, 217, .72); font-size: 12px; letter-spacing: .1em; }
.cn-hero-desc {
  margin: 16px 0 22px;
  max-width: 520px;
  color: rgba(240, 231, 217, .78);
  font-size: 13px;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cn-hero-progress { max-width: 300px; margin-bottom: 18px; background: rgba(255, 255, 255, .18); }
.cn-hero-progress i { background: var(--gold); }
.cn-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cn-hero-ghost {
  --btn-bg: rgba(255, 255, 255, .1);
  --btn-fg: #f6eee1;
  --btn-border: rgba(255, 255, 255, .26);
  backdrop-filter: blur(6px);
}
.cn-hero-ghost:hover { --btn-bg: rgba(255, 255, 255, .18); }
.cn-hero-counts {
  position: absolute;
  right: 30px;
  bottom: 30px;
  display: flex;
  gap: 26px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(20, 16, 11, .42);
  backdrop-filter: blur(12px);
}
.cn-hero-counts span { display: flex; flex-direction: column; gap: 1px; color: rgba(240, 231, 217, .6); font-size: 9.5px; letter-spacing: .14em; }
.cn-hero-counts strong { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--night-text); letter-spacing: 0; }

/* ---------- 横向海报轨 ---------- */
.cn-rail,
.cn-video-rail,
.cn-album-rail,
.cn-continue-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 168px;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x proximity;
}
.cn-video-rail { grid-auto-columns: 292px; }
.cn-album-rail { grid-auto-columns: 164px; }
.cn-continue-rail { grid-auto-columns: 280px; }
.cn-rail > *,
.cn-video-rail > *,
.cn-album-rail > *,
.cn-continue-rail > * { scroll-snap-align: start; }

/* ---------- 海报卡 ---------- */
.cn-poster,
.cn-video-card,
.cn-album-card,
.cn-continue-card,
.cn-playlist-card {
  min-width: 0;
  cursor: pointer;
  outline: none;
}
.cn-poster-art,
.cn-video-art,
.cn-album-art,
.cn-playlist-art {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(150deg, #ded2bd, #b9a68a);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset;
}
.cn-poster-art { aspect-ratio: 2 / 3; }
.cn-video-art,
.cn-continue-art { aspect-ratio: 16 / 9; }
.cn-album-art,
.cn-playlist-art { aspect-ratio: 1; }
.cn-poster-art img,
.cn-video-art img,
.cn-album-art img,
.cn-playlist-art img,
.cn-detail-cover img,
.cn-series-cover img,
.cn-album-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .25s ease;
}
.cn-poster:hover .cn-poster-art img,
.cn-poster:focus-visible .cn-poster-art img,
.cn-video-card:hover .cn-video-art img,
.cn-album-card:hover .cn-album-art img,
.cn-playlist-card:hover .cn-playlist-art img { transform: scale(1.045); }

.cn-poster-fallback,
.cn-video-fallback,
.cn-album-fallback,
.cn-series-cover .cn-poster-fallback,
.cn-detail-cover .cn-poster-fallback,
.cn-album-cover .cn-album-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  color: rgba(255, 252, 244, .85);
  background:
    radial-gradient(circle at 76% 12%, rgba(255, 244, 219, .3), transparent 36%),
    linear-gradient(150deg, #8d7a61 0%, #584735 62%, #3a2f23 100%);
  text-align: center;
}
.cn-poster-fallback .icon,
.cn-video-fallback .icon,
.cn-album-fallback .icon { width: 28px; height: 28px; opacity: .8; }
.cn-poster-fallback span {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .08em;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cn-series-art .cn-poster-fallback { background: radial-gradient(circle at 20% 14%, rgba(255, 244, 219, .24), transparent 38%), linear-gradient(150deg, #4d5a52 0%, #2f3b33 60%, #212a24 100%); }
.cn-album-fallback { background: radial-gradient(circle at 72% 16%, rgba(255, 244, 219, .28), transparent 40%), linear-gradient(150deg, #9b6a4a 0%, #6d4630 58%, #3f2a1d 100%); }

.cn-card-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(251, 246, 236, .92);
  color: var(--ink);
  transform: translate(-50%, -50%) scale(.86);
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}
.cn-card-play .icon { fill: currentColor; width: 18px; height: 18px; margin-left: 2px; }
.cn-poster:hover .cn-card-play,
.cn-video-card:hover .cn-card-play,
.cn-series-art:hover .cn-card-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cn-poster-art::after,
.cn-video-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  background: linear-gradient(0deg, rgba(14, 11, 8, .6), transparent 58%);
  transition: opacity .25s ease;
  pointer-events: none;
}
.cn-poster:hover .cn-poster-art::after,
.cn-video-card:hover .cn-video-art::after { opacity: 1; }

.cn-badge {
  position: absolute;
  z-index: 4;
  top: 9px;
  left: 9px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(20, 16, 11, .66);
  backdrop-filter: blur(6px);
  color: #f5ecdd;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}
.cn-duration {
  position: absolute;
  z-index: 4;
  right: 9px;
  bottom: 9px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(20, 16, 11, .72);
  color: #f5ecdd;
  font-family: var(--mono);
  font-size: 10px;
}

.cn-fav {
  position: absolute;
  z-index: 5;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 16, 11, .46);
  backdrop-filter: blur(6px);
  color: rgba(255, 250, 240, .88);
  cursor: pointer;
  opacity: 0;
  transition: opacity .18s ease, transform .15s ease, color .15s ease, background .15s ease;
}
.cn-fav .icon { width: 15px; height: 15px; }
.cn-fav:hover { transform: scale(1.08); background: rgba(20, 16, 11, .7); opacity: 1; }
.cn-fav.is-fav { opacity: 1; color: #f0b184; }
.cn-fav.is-fav .icon { fill: currentColor; }
.cn-poster:hover .cn-fav,
.cn-video-card:hover .cn-fav,
.cn-continue-card:hover .cn-fav,
.cn-fav:focus-visible { opacity: 1; }
.cn-detail-fav.is-fav { color: var(--accent-deep); border-color: var(--accent-deep); }
.cn-detail-fav.is-fav .icon { fill: currentColor; }
.cn-shared-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(91, 122, 99, .14);
  color: #4c6a55;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
  vertical-align: middle;
}
.cn-poster-progress,
.cn-video-progress {
  position: absolute;
  z-index: 4;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .25);
  overflow: hidden;
}
.cn-poster-progress i,
.cn-video-progress i { display: block; height: 100%; background: var(--gold); }

.cn-poster-title,
.cn-video-title,
.cn-album-title,
.cn-playlist-title {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cn-poster-meta,
.cn-video-meta,
.cn-album-meta,
.cn-playlist-meta {
  margin-top: 3px;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cn-poster:hover .cn-poster-title { color: var(--accent-deep); }

/* ---------- 继续观看 ---------- */
.cn-continue-card { position: relative; }
.cn-continue-art { box-shadow: var(--shadow); }
.cn-continue-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(14, 11, 8, .55), transparent 55%);
}
.cn-continue-play {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 246, 236, .94);
  color: var(--ink);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .2s ease;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}
.cn-continue-play .icon { fill: currentColor; width: 16px; height: 16px; margin-left: 2px; }
.cn-continue-card:hover .cn-continue-play { opacity: 1; }
.cn-continue-info { margin-top: 9px; }
.cn-continue-info strong { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-continue-info small { display: block; margin-top: 2px; color: var(--faint); font-size: 10px; }
.cn-continue-progress { margin-top: 7px; }

/* ---------- 进度条 ---------- */
.cn-progressbar {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(36, 32, 26, .12);
  overflow: hidden;
}
.cn-progressbar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); transition: width .4s ease; }

/* ---------- 筛选工具栏 ---------- */
.cn-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cn-toolbar .cn-search { flex: 1 1 auto; }
.cn-toolbar .cn-select { flex: none; width: auto; min-width: 132px; }
.cn-tool-count { flex: none; color: var(--faint); font-size: 11px; letter-spacing: .06em; white-space: nowrap; }
.cn-filterline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cn-genre-chips { flex: 1 1 auto; min-width: 0; }
.cn-year-select { flex: none; width: 128px; min-height: 34px; padding-top: 5px; padding-bottom: 5px; font-size: 12px; }
.cn-toolbar .btn { flex: none; }

/* ---------- 网格 ---------- */
.cn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
  gap: 26px 18px;
}
.cn-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px 18px;
}
.cn-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 22px 16px;
}
.cn-loadmore { display: flex; justify-content: center; margin-top: 28px; }
.cn-end { margin-top: 26px; text-align: center; color: var(--faint); font-size: 10.5px; letter-spacing: .16em; }
.cn-album-empty { padding: 26px 0; color: var(--faint); font-size: 12px; }
.cn-music-tracks { margin-top: 8px; }
.cn-music-shelf { margin-bottom: 30px; }

/* ---------- 曲目列表 ---------- */
.cn-track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: background .16s ease;
}
.cn-track:hover { background: rgba(255, 252, 245, .72); }
.cn-track.is-active { background: var(--accent-soft); }
.cn-track-no {
  flex: 0 0 30px;
  text-align: right;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}
.cn-track.is-active .cn-track-no { color: var(--accent); }
.cn-track-cover {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  color: var(--faint);
}
.cn-track-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cn-track-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.cn-track-main strong { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-track-main small { color: var(--faint); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-track.is-active .cn-track-main strong { color: var(--accent-deep); }
.cn-track-duration { flex: 0 0 auto; color: var(--faint); font-family: var(--mono); font-size: 10.5px; }
.cn-track-actions { flex: 0 0 auto; display: flex; gap: 2px; opacity: 0; transition: opacity .16s ease; }
.cn-track:hover .cn-track-actions,
.cn-track.is-active .cn-track-actions { opacity: 1; }
.cn-track-actions button {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}
.cn-track-actions button:hover { background: rgba(36, 32, 26, .08); color: var(--ink); }
.cn-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.cn-eq i { width: 2px; background: var(--accent); border-radius: 2px; animation: cneq 1s ease-in-out infinite; }
.cn-eq i:nth-child(1) { height: 7px; }
.cn-eq i:nth-child(2) { height: 11px; animation-delay: -.25s; }
.cn-eq i:nth-child(3) { height: 5px; animation-delay: -.5s; }
@keyframes cneq { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }

/* ---------- 片单 ---------- */
.cn-playlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.cn-playlist-head p { color: var(--muted); font-size: 12.5px; }
.cn-playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(174px, 1fr));
  gap: 24px 18px;
}
.cn-playlist-art { display: flex; align-items: center; justify-content: center; color: rgba(255, 252, 244, .8); background: linear-gradient(150deg, #8d7a61, #3a2f23); }
.cn-playlist-art .icon { width: 34px; height: 34px; opacity: .8; }
.cn-playlist-count {
  position: absolute;
  z-index: 2;
  right: 9px;
  bottom: 9px;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(20, 16, 11, .68);
  color: #f5ecdd;
  font-family: var(--mono);
  font-size: 10px;
}

/* ---------- 骨架屏 ---------- */
.cn-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
  gap: 26px 18px;
}
.cn-skeleton-grid.is-video { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cn-skeleton {
  aspect-ratio: 2 / 3;
  border-radius: 13px;
  background: linear-gradient(100deg, rgba(36, 32, 26, .06) 24%, rgba(255, 252, 245, .5) 38%, rgba(36, 32, 26, .06) 52%);
  background-size: 240% 100%;
  animation: cnshimmer 1.6s ease infinite;
}
.cn-skeleton.is-video { aspect-ratio: 16 / 9; }
@keyframes cnshimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.cn-shelf-loading { margin-top: 34px; }
.cn-home-loading { display: flex; flex-direction: column; gap: 26px; }
.cn-inline-loading { display: flex; justify-content: center; padding: 30px 0; }

/* ---------- 空状态 ---------- */
.cn-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 340px;
  padding: 46px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(251, 248, 241, .45);
}
.cn-empty-icon {
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--accent);
}
.cn-empty h3 { font-family: var(--serif); font-size: 23px; font-weight: 500; letter-spacing: .04em; }
.cn-empty p { max-width: 420px; margin: 9px 0 22px; color: var(--muted); font-size: 12.5px; line-height: 1.85; }
.cn-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cn-grid > .cn-empty,
.cn-video-grid > .cn-empty,
.cn-playlist-grid > .cn-empty { grid-column: 1 / -1; }

/* ---------- 文件夹管理 ---------- */
.cn-folders { display: flex; flex-direction: column; gap: 18px; }
.cn-library-manager { display: flex; flex-direction: column; gap: 14px; }
.cn-library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cn-library-toolbar .cn-scan-state { flex-wrap: wrap; }
.cn-folder-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--moss-soft);
  color: #4a5542;
  font-size: 12px;
  line-height: 1.75;
}
.cn-folder-note .icon { flex: none; margin-top: 3px; color: var(--moss); }
.cn-folder-note strong { font-weight: 700; }
.cn-folder-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.cn-folder-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 252, 245, .6);
}
.cn-folder-ico {
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.cn-folder-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cn-folder-main strong { font-size: 13px; }
.cn-folder-main .mono { color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-folder-main small { color: var(--faint); font-size: 10px; }
.cn-folder-actions { flex: none; display: flex; align-items: center; gap: 4px; }
.cn-folder-actions .icon-btn { width: 34px; height: 34px; }
.cn-folder-empty { padding: 28px 16px; text-align: center; color: var(--faint); font-size: 12px; line-height: 1.9; }
.cn-folder-form {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cn-form-title { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .05em; }
.cn-folder-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cn-folder-form-foot > span { color: var(--faint); font-size: 10.5px; }
.cn-scan-state { margin-right: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.cn-state-ok { display: inline-flex; align-items: center; gap: 5px; color: var(--moss); }
.cn-state-failed { color: var(--danger); }

/* ---------- 详情弹窗 ---------- */
.cn-detail { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; }
.cn-detail-cover,
.cn-series-cover,
.cn-album-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(150deg, #ded2bd, #b9a68a);
  box-shadow: var(--shadow);
}
.cn-album-cover { aspect-ratio: 1; }
.cn-detail-info { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 4px; }
.cn-detail-title { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.2; letter-spacing: .04em; }
.cn-detail-meta { color: var(--faint); font-size: 11px; letter-spacing: .04em; }
.cn-detail-overview { color: var(--muted); font-size: 12.5px; line-height: 1.9; }
.cn-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cn-detail-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  width: 100%;
  margin-top: 6px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10.5px;
}
.cn-detail-file .mono { color: var(--muted); word-break: break-all; }
.cn-resume { display: flex; flex-direction: column; gap: 6px; width: min(320px, 100%); color: var(--muted); font-size: 10.5px; }
.cn-resume .cn-progressbar { height: 5px; }

/* ---------- 剧集详情 ---------- */
.cn-series-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; margin-bottom: 24px; }
.cn-series-info { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cn-series-info h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: .04em; }
.cn-series-meta { color: var(--faint); font-size: 11px; }
.cn-series-overview { color: var(--muted); font-size: 12.5px; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cn-series-actions { margin-top: 4px; }
.cn-season-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.cn-episode-list { display: flex; flex-direction: column; }
.cn-episode-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  border-radius: 10px;
  transition: background .16s ease;
}
.cn-episode-row:hover { background: rgba(255, 252, 245, .7); }
.cn-episode-row.has-progress { background: rgba(178, 83, 44, .04); }
.cn-episode-play {
  flex: none;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--accent-deep);
  transition: background .16s ease, border-color .16s ease;
}
.cn-episode-play:hover { background: var(--accent); border-color: var(--accent); color: #fff8ef; }
.cn-episode-play .icon { fill: currentColor; margin-left: 1px; }
.cn-episode-no { flex: 0 0 30px; color: var(--faint); font-family: var(--mono); font-size: 12px; }
.cn-episode-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cn-episode-main strong { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-episode-main small { color: var(--faint); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-episode-progress { max-width: 260px; height: 3px; margin-top: 3px; }
.cn-episode-duration { flex: none; color: var(--faint); font-family: var(--mono); font-size: 10.5px; }
.cn-episode-row .icon-btn { flex: none; width: 32px; height: 32px; }

/* ---------- 专辑详情 ---------- */
.cn-album-detail { display: flex; flex-direction: column; gap: 22px; }
.cn-album-hero { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 26px; align-items: end; }
.cn-album-cover { width: 100%; }
.cn-album-info { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding-bottom: 4px; }
.cn-album-info h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: .04em; }
.cn-album-info p { color: var(--faint); font-size: 11.5px; }
.cn-album-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.cn-album-tracks { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 6px; }

/* ---------- 加入片单 ---------- */
.cn-addpl { display: flex; flex-direction: column; gap: 14px; }
.cn-addpl-hint { color: var(--muted); font-size: 12px; }
.cn-addpl-list { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
.cn-addpl-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 252, 245, .5);
  text-align: left;
  transition: border-color .16s ease, background .16s ease;
}
.cn-addpl-row:hover { border-color: var(--line-strong); background: var(--paper); }
.cn-addpl-row > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cn-addpl-row strong { font-size: 13px; font-weight: 600; }
.cn-addpl-row small { color: var(--faint); font-size: 10.5px; }
.cn-addpl-cover {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  overflow: hidden;
  background: var(--paper-2);
  color: var(--muted);
}
.cn-addpl-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cn-addpl-new { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.cn-addpl-new .input { flex: 1; min-height: 38px; }

/* ---------- 片单详情 ---------- */
.cn-playlist-detail { display: flex; flex-direction: column; gap: 20px; }
.cn-playlist-hero { display: flex; align-items: center; gap: 22px; }
.cn-playlist-cover {
  flex: none;
  width: 108px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(150deg, #8d7a61, #3a2f23);
  color: rgba(255, 252, 244, .82);
  box-shadow: var(--shadow);
}
.cn-playlist-cover .icon { width: 34px; height: 34px; }
.cn-playlist-hero h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .04em; }
.cn-playlist-hero p { margin: 3px 0 12px; color: var(--faint); font-size: 11px; }
.cn-playlist-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cn-playlist-items { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 8px; }
.cn-playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  border-radius: 10px;
}
.cn-playlist-item:hover { background: rgba(255, 252, 245, .6); }
.cn-pl-index { flex: 0 0 26px; color: var(--faint); font-family: var(--mono); font-size: 10.5px; }
.cn-pl-thumb {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-2);
  color: var(--faint);
}
.cn-pl-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cn-pl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cn-pl-main strong { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-pl-main small { color: var(--faint); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-pl-duration { flex: none; color: var(--faint); font-family: var(--mono); font-size: 10.5px; }
.cn-pl-actions { flex: none; display: flex; gap: 1px; }
.cn-pl-actions .icon-btn { width: 30px; height: 30px; }

/* ---------- 播放器 ---------- */
.cn-player {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c0a08;
  color: #f2eadf;
  overflow: hidden;
  animation: fadein .22s ease;
}
.cn-player.is-idle { cursor: none; }
.cn-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0c0a08; }
.cn-player-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 5, 4, .72) 0%, transparent 20%),
    linear-gradient(0deg, rgba(6, 5, 4, .86) 0%, transparent 26%);
  transition: opacity .3s ease;
}
.cn-pl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(242, 234, 223, .82);
  transition: background .16s ease, color .16s ease, opacity .2s ease;
}
.cn-pl-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.cn-pl-btn:disabled { opacity: .3; cursor: not-allowed; }
.cn-pl-btn.is-active { color: var(--gold); }
.cn-pl-btn .icon { width: 21px; height: 21px; }

.cn-player-top {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  background: linear-gradient(180deg, rgba(6, 5, 4, .78), transparent);
  transition: opacity .3s ease, transform .3s ease;
}
.cn-pl-back { width: auto; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); gap: 4px; font-size: 12px; }
.cn-pl-back .icon { width: 17px; height: 17px; }
.cn-pl-heading { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cn-pl-heading strong { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-pl-heading span { color: rgba(242, 234, 223, .55); font-size: 10.5px; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-pl-top-actions { display: flex; gap: 4px; }

.cn-player-controls {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 24px 20px;
  background: linear-gradient(0deg, rgba(6, 5, 4, .9), transparent);
  transition: opacity .3s ease, transform .3s ease;
}
.cn-player.is-idle .cn-player-top { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.cn-player.is-idle .cn-player-controls { opacity: 0; transform: translateY(10px); pointer-events: none; }
.cn-player.is-idle .cn-player-big { opacity: 0; pointer-events: none; }

.cn-progress-row { display: flex; align-items: center; gap: 13px; }
.cn-time { flex: none; min-width: 38px; color: rgba(242, 234, 223, .62); font-family: var(--mono); font-size: 10.5px; text-align: center; }
.cn-seek { position: relative; flex: 1; height: 24px; display: flex; align-items: center; cursor: pointer; }
.cn-seek-line { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: rgba(255, 255, 255, .2); }
.cn-seek-buffer { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: rgba(255, 255, 255, .34); width: 0; }
.cn-seek-played { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: var(--accent); width: 0; }
.cn-seek-knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #f7efe2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity .15s ease;
}
.cn-seek:hover .cn-seek-knob { opacity: 1; }
.cn-seek input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.cn-seek-chapters { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; z-index: 3; pointer-events: none; }
.cn-seek-chapter {
  position: absolute;
  top: -5px;
  width: 3px;
  height: 14px;
  margin-left: -1.5px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(247, 239, 226, .48);
  cursor: pointer;
  pointer-events: auto;
  transition: background .15s ease, height .15s ease, top .15s ease;
}
.cn-seek-chapter:hover, .cn-seek-chapter.is-active { top: -7px; height: 18px; background: var(--gold); }
.cn-chapter-line {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(520px, 100%);
  margin: 0 0 6px;
  padding: 4px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: rgba(242, 234, 223, .68);
  font-size: 11px;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.cn-chapter-line:hover { background: rgba(255, 255, 255, .14); color: #f2eadf; }
.cn-chapter-line[hidden] { display: none; }
.cn-chapter-line .icon { flex: none; }
.cn-chapter-line span { flex: none; font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; }
.cn-chapter-line strong { min-width: 0; color: #f2eadf; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-chapter-line small { flex: none; color: rgba(242, 234, 223, .45); font-family: var(--mono); font-size: 9.5px; }
.cn-menu-chapter .cn-menu-num { flex-basis: 40px; }
.cn-menu-chapter .cn-menu-title { display: block; }
body.has-player-modal .modal-backdrop { z-index: 600; }
.cn-translate-form { display: flex; flex-direction: column; gap: 16px; }
.cn-translate-form .hint { margin: 0; color: var(--faint); font-size: 12px; line-height: 1.6; }

.cn-controls-row { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.cn-pl-main {
  width: 46px;
  height: 46px;
  background: rgba(247, 239, 226, .94);
  color: #17130f;
}
.cn-pl-main:hover { background: #fff; color: #17130f; }
.cn-pl-main .icon { fill: currentColor; }
.cn-volume { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.cn-volume input[type="range"] { width: 74px; height: 4px; accent-color: var(--gold); cursor: pointer; }
.cn-controls-context { margin-left: 12px; color: rgba(242, 234, 223, .48); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-controls-spacer { flex: 1; }
.cn-text-btn { width: auto; padding: 0 11px; border-radius: 8px; font-family: var(--mono); font-size: 12px; }
.cn-controls-row .cn-pl-btn { flex: none; }

.cn-player-big {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 16, 11, .48);
  backdrop-filter: blur(8px);
  color: #f7efe2;
  transform: translate(-50%, -50%);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.cn-player-big:hover { background: rgba(20, 16, 11, .68); }
.cn-player-big .icon { width: 30px; height: 30px; fill: currentColor; margin-left: 3px; }
.cn-player.is-playing .cn-player-big { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.9); }

.cn-player-loading {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  width: min(340px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 24px;
  border-radius: 18px;
  background: rgba(18, 14, 10, .82);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgba(242, 234, 223, .72);
  font-size: 12px;
}
.cn-player-loading .loader { border-color: rgba(255, 255, 255, .16); border-top-color: var(--gold); }
.cn-loadbar { width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.cn-loadbar i { display: block; width: 0; height: 100%; background: var(--gold); transition: width .4s ease; }
.cn-player-loading .btn { color: #f2eadf; border-color: rgba(255, 255, 255, .3); }

.cn-player-end {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  width: min(380px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 26px;
  border-radius: 20px;
  background: rgba(18, 14, 10, .86);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%);
  text-align: center;
}
.cn-player-end .cn-eyebrow { color: var(--gold); }
.cn-player-end h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .04em; }
.cn-end-actions { display: flex; gap: 8px; margin-top: 8px; }
.cn-player-end .btn-outline { color: #f2eadf; border-color: rgba(255, 255, 255, .3); }

.cn-player-menu {
  position: absolute;
  z-index: 7;
  right: 24px;
  bottom: 108px;
  width: min(300px, calc(100vw - 32px));
  max-height: min(56vh, 420px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 15px;
  background: rgba(24, 19, 14, .94);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.cn-menu-head { padding: 9px 12px 6px; color: rgba(242, 234, 223, .45); font-size: 9.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.cn-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(242, 234, 223, .8);
  font-size: 12.5px;
  text-align: left;
}
.cn-menu-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.cn-menu-item.is-active { color: var(--gold); }
.cn-menu-item .icon { flex: none; }
.cn-menu-num { flex: 0 0 22px; color: rgba(242, 234, 223, .38); font-family: var(--mono); font-size: 10px; }
.cn-menu-title { flex: 1; min-width: 0; display: flex; flex-direction: column; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-menu-title small { color: rgba(242, 234, 223, .4); font-size: 9.5px; }
.cn-menu-note { padding: 8px 12px 10px; color: rgba(242, 234, 223, .5); font-size: 11px; }
.cn-menu-sep { height: 1px; margin: 5px 8px; background: rgba(255, 255, 255, .09); }
.cn-player-hint {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 84px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(18, 14, 10, .82);
  backdrop-filter: blur(8px);
  color: #f2eadf;
  font-size: 12px;
  transform: translateX(-50%);
  pointer-events: none;
}

/* ---------- 音乐播放器 ---------- */
.cn-dock {
  position: fixed;
  z-index: 130;
  right: 22px;
  bottom: 22px;
  width: min(392px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 17px;
  background: rgba(28, 23, 17, .94);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(20, 15, 10, .38);
  color: var(--night-text);
  overflow: hidden;
  animation: dockin .32s cubic-bezier(.2, .8, .2, 1);
}
@keyframes dockin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cn-dock-body {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  grid-template-areas:
    "cover info controls"
    "lyric lyric tools";
  align-items: center;
  gap: 5px 12px;
  padding: 11px 12px 9px 11px;
}
.cn-dock-cover {
  grid-area: cover;
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
  color: rgba(242, 234, 223, .6);
}
.cn-dock-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cn-dock-cover .icon { width: 20px; height: 20px; }
.cn-dock-info { grid-area: info; min-width: 0; display: flex; flex-direction: column; }
.cn-dock-info strong { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-dock-info > span { color: rgba(242, 234, 223, .48); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-dock-line { display: flex; align-items: center; gap: 7px; margin-top: 4px; }
.cn-dock-line span { flex: none; color: rgba(242, 234, 223, .42); font-family: var(--mono); font-size: 9px; }
.cn-dock-track { position: relative; flex: 1; height: 12px; display: flex; align-items: center; }
.cn-dock-track::before { content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .16); }
.cn-dock-track i { position: absolute; left: 0; height: 3px; width: 0; border-radius: 3px; background: var(--gold); }
.cn-dock-track input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cn-dock-controls { grid-area: controls; display: flex; align-items: center; gap: 1px; }
.cn-dock-controls button,
.cn-dock-tools button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(242, 234, 223, .68);
  transition: background .16s ease, color .16s ease;
}
.cn-dock-controls button:hover,
.cn-dock-tools button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.cn-dock-controls .icon,
.cn-dock-tools .icon { width: 17px; height: 17px; }
.cn-dock-toggle { background: rgba(247, 239, 226, .92) !important; color: #17130f !important; }
.cn-dock-toggle .icon { fill: currentColor; }
.cn-dock-toggle:hover { background: #fff !important; }
.cn-dock-lyric {
  grid-area: lyric;
  min-width: 0;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: rgba(242, 234, 223, .42);
  font-size: 10px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cn-dock-lyric:hover { color: rgba(242, 234, 223, .72); }
.cn-dock-tools { grid-area: tools; display: flex; align-items: center; gap: 1px; }
.cn-dock-tools .is-on { color: var(--gold); }
.cn-dock-tools .is-one::after {
  content: "1";
  position: absolute;
  margin: 12px 0 0 13px;
  font-family: var(--mono);
  font-size: 7px;
  color: currentColor;
}
.cn-dock-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .08); }
.cn-dock-progress i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s linear; }

/* ---------- 歌词 ---------- */
.cn-lyrics-panel {
  position: fixed;
  z-index: 129;
  right: 22px;
  bottom: 116px;
  width: min(400px, calc(100vw - 32px));
  max-height: min(58vh, 520px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 19px;
  background: rgba(28, 23, 17, .96);
  backdrop-filter: blur(20px);
  box-shadow: 0 26px 70px rgba(20, 15, 10, .45);
  color: var(--night-text);
  overflow: hidden;
  animation: dockin .28s cubic-bezier(.2, .8, .2, 1);
}
.cn-lyrics-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.cn-lyrics-head strong { display: block; margin-top: 6px; font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .04em; }
.cn-lyrics-head > div > span:last-child { display: block; margin-top: 2px; color: rgba(242, 234, 223, .45); font-size: 10.5px; }
.cn-lyrics-head .cn-eyebrow { color: var(--gold); }
.cn-lyrics-head .icon-btn { color: rgba(242, 234, 223, .6); }
.cn-lyrics-head .icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.cn-lyrics-body { flex: 1; min-height: 90px; overflow-y: auto; padding: 16px 22px 26px; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.cn-lyric {
  margin: 0;
  padding: 7px 0;
  color: rgba(242, 234, 223, .42);
  font-size: 13px;
  line-height: 1.7;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}
.cn-lyric:hover { color: rgba(242, 234, 223, .72); }
.cn-lyric.is-plain { color: rgba(242, 234, 223, .3); font-size: 11.5px; }
.cn-lyric.is-active { color: #f6ead6; font-family: var(--serif); font-size: 15px; font-weight: 600; transform: translateX(3px); }
.cn-lyrics-empty { padding: 30px 6px; color: rgba(242, 234, 223, .42); font-size: 12px; line-height: 2; text-align: center; }
.cn-lyrics-panel.is-empty { max-height: none; }
.cn-lyrics-panel.is-empty .cn-lyrics-body { flex: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1220px) {
  .cn-hero { min-height: 360px; }
  .cn-hero-counts { display: none; }
  .cn-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 15px; }
  .cn-rail { grid-auto-columns: 154px; }
  .cn-detail { grid-template-columns: 240px minmax(0, 1fr); }
}

@media (max-width: 1020px) {
  .cn-hero-body { width: min(560px, 76%); padding: 36px 34px 32px; }
  .cn-hero h2 { font-size: 42px; }
  .cn-video-rail { grid-auto-columns: 260px; }
  .cn-continue-rail { grid-auto-columns: 248px; }
  .cn-series-hero { grid-template-columns: 180px minmax(0, 1fr); }
  .cn-album-hero { grid-template-columns: 170px minmax(0, 1fr); }
  .cn-dock { right: 16px; bottom: 16px; }
  .cn-lyrics-panel { right: 16px; bottom: 108px; }
}

@media (max-width: 860px) {
  .cn-head { align-items: flex-start; }
  .cn-head .page-actions { width: 100%; }
  .cn-tabs { margin: 0 -2px 20px; padding: 8px 2px; }
  .cn-tab { min-height: 34px; padding: 0 13px; font-size: 12px; }
  .cn-hero { min-height: 300px; margin-bottom: 30px; border-radius: 18px; }
  .cn-hero-body { width: 100%; padding: 52px 22px 24px; }
  .cn-hero h2 { font-size: 33px; margin: 9px 0 7px; }
  .cn-hero-desc { margin: 10px 0 16px; font-size: 11.5px; -webkit-line-clamp: 2; }
  .cn-hero-actions .btn { min-height: 42px; padding: 0 18px; font-size: 13px; }
  .cn-hero-progress { max-width: none; margin-bottom: 14px; }
  .cn-shelf { margin-bottom: 30px; }
  .cn-shelf-head h3 { font-size: 19px; }
  .cn-shelf-head h3 small { display: none; }
  .cn-rail { grid-auto-columns: 132px; gap: 11px; padding-bottom: 8px; }
  .cn-video-rail { grid-auto-columns: 232px; gap: 12px; }
  .cn-continue-rail { grid-auto-columns: 228px; gap: 12px; }
  .cn-album-rail { grid-auto-columns: 132px; gap: 12px; }
  .cn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
  .cn-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .cn-album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  .cn-playlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .cn-skeleton-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
  .cn-skeleton-grid.is-video { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cn-poster-title, .cn-video-title, .cn-album-title, .cn-playlist-title { margin-top: 7px; font-size: 11.5px; }
  .cn-poster-meta, .cn-video-meta, .cn-album-meta, .cn-playlist-meta { font-size: 9px; }
  .cn-card-play { display: none; }
  .cn-toolbar { gap: 8px; flex-wrap: wrap; }
  .cn-toolbar .cn-search { flex: 1 1 100%; }
  .cn-toolbar .cn-select { flex: 1 1 auto; min-width: 0; }
  .cn-tool-count { margin-left: auto; }
  .cn-filterline { gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .cn-genre-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .cn-genre-chips::-webkit-scrollbar { display: none; }
  .cn-genre-chips .chip { flex: none; }
  .cn-year-select { min-width: 108px; }
  .cn-detail { grid-template-columns: 1fr; gap: 18px; }
  .cn-detail-cover { width: 168px; aspect-ratio: 2 / 3; }
  .cn-detail-title { font-size: 24px; }
  .cn-series-hero { grid-template-columns: 128px minmax(0, 1fr); gap: 16px; }
  .cn-series-info h2 { font-size: 22px; }
  .cn-series-overview { -webkit-line-clamp: 3; font-size: 11.5px; }
  .cn-album-hero { grid-template-columns: 132px minmax(0, 1fr); gap: 16px; }
  .cn-album-info h2 { font-size: 22px; }
  .cn-playlist-hero { gap: 14px; align-items: flex-start; }
  .cn-playlist-cover { width: 76px; height: 76px; border-radius: 13px; }
  .cn-playlist-hero h2 { font-size: 21px; }
  .cn-playlist-actions .btn { min-height: 36px; padding: 0 13px; font-size: 12px; }
  .cn-track { padding: 6px 6px; gap: 9px; }
  .cn-track-no { flex-basis: 24px; }
  .cn-track-cover { display: none; }
  .cn-track-actions { opacity: 1; }
  .cn-track-actions button { width: 27px; height: 27px; }
  .cn-track-duration { font-size: 9.5px; }
  .cn-episode-row { gap: 8px; padding: 8px 4px; }
  .cn-episode-no { flex-basis: 22px; font-size: 10.5px; }
  .cn-episode-main small { display: none; }
  .cn-episode-duration { display: none; }
  .cn-album-hero .cn-album-actions .btn { min-height: 38px; padding: 0 14px; font-size: 12.5px; }
  .cn-folder-form { padding: 14px; }
  .cn-folder-form-foot { flex-direction: column; align-items: stretch; }
  .cn-folder-row { flex-wrap: wrap; }
  .cn-folder-main { flex-basis: calc(100% - 53px); }
  .cn-folder-actions { width: 100%; justify-content: flex-end; }
  .cn-dock { right: 8px; bottom: calc(var(--nav-h) + 8px + env(safe-area-inset-bottom)); width: calc(100vw - 16px); }
  .cn-dock-body { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 9px 10px 7px 9px; gap: 3px 10px; }
  .cn-dock-cover { width: 44px; height: 44px; }
  .cn-dock-lyric { display: none; }
  .cn-dock-tools button { width: 30px; height: 30px; }
  .cn-lyrics-panel { right: 8px; bottom: calc(var(--nav-h) + 84px + env(safe-area-inset-bottom)); width: calc(100vw - 16px); max-height: 52vh; }
  .cn-player-top { padding: 12px 12px; gap: 10px; }
  .cn-pl-back span { display: none; }
  .cn-pl-back { width: 40px; padding: 0; justify-content: center; }
  .cn-pl-heading strong { font-size: 15px; }
  .cn-player-controls { padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }
  .cn-volume { display: none; }
  .cn-controls-context { display: none; }
  .cn-player-big { width: 64px; height: 64px; }
  .cn-player-big .icon { width: 26px; height: 26px; }
  .cn-player-menu { right: 12px; bottom: 92px; max-height: 50vh; }
  .cn-player-end { padding: 22px 18px; }
  .cn-player-end h3 { font-size: 19px; }
  .cn-player-hint { top: 66px; }
  .cn-loadmore { margin-top: 20px; }
}

@media (max-width: 600px) {
  .cn-head .page-title { font-size: 32px; }
  .cn-head .page-desc { font-size: 11.5px; }
  .cn-head .page-actions { gap: 8px; }
  .cn-head .page-actions .btn { flex: 1 1 0; min-height: 42px; padding: 0 10px; font-size: 12.5px; }
  .cn-hero { min-height: 270px; }
  .cn-hero h2 { font-size: 29px; }
  .cn-hero .cn-eyebrow { font-size: 8.5px; }
  .cn-toolbar .btn { padding: 0 14px; font-size: 12px; }
  .cn-playlist-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cn-playlist-head .btn { width: 100%; }
  .cn-detail-cover { width: 136px; }
  .cn-series-hero { grid-template-columns: 1fr; }
  .cn-series-cover { width: 118px; aspect-ratio: 2 / 3; }
  .cn-album-hero { grid-template-columns: 110px minmax(0, 1fr); }
  .cn-album-info .cn-eyebrow { display: none; }
  .cn-album-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .cn-album-actions .btn { min-height: 36px; }
  .cn-playlist-hero { flex-direction: column; }
  .cn-playlist-cover { width: 64px; height: 64px; }
  .cn-playlist-actions { width: 100%; }
  .cn-playlist-actions .btn { flex: 1 1 auto; }
  .cn-pl-duration { display: none; }
  .cn-pl-actions .icon-btn[data-pl-up],
  .cn-pl-actions .icon-btn[data-pl-down] { display: none; }
  .cn-track-no { flex-basis: 20px; }
  .cn-track-main strong { font-size: 12px; }
  .cn-track-duration { display: none; }
  .cn-episode-play { width: 30px; height: 30px; }
  .cn-season-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .cn-season-tabs .chip { flex: none; }
  .cn-controls-row { gap: 1px; }
  .cn-controls-row .cn-pl-btn { width: 36px; height: 36px; }
  .cn-controls-row .cn-pl-btn .icon { width: 18px; height: 18px; }
  .cn-pl-main { width: 42px; height: 42px; }
  .cn-text-btn { padding: 0 7px; font-size: 11px; }
  .cn-time { min-width: 32px; font-size: 9.5px; }
  .cn-progress-row { gap: 8px; }
  .cn-player-menu { right: 8px; left: 8px; width: auto; }
  .cn-dock-controls button { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .cn-eq i { animation: none; }
  .cn-skeleton { animation: none; }
}
