/* 公共歌单库 */
[v-cloak] { display: none; }

.lib-hero {
  background: radial-gradient(900px 320px at 10% 0%, #ff5c7a26, transparent 60%),
              radial-gradient(800px 320px at 90% 10%, #7b2ff726, transparent 60%),
              linear-gradient(180deg, #faf9ff, #f4f5fa);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 22px;
}
.lib-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.lib-hero h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: .5px; }
.lib-hero p { margin: 0; color: var(--muted); font-size: 14px; max-width: 560px; line-height: 1.8; }
.lib-search { display: flex; gap: 10px; width: 420px; max-width: 100%; }
.lib-search .el-input__wrapper { border-radius: 12px; }
.lib-search .el-button { border-radius: 12px; padding: 0 22px; }
.lib-cats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.lib-cats a { padding: 5px 14px; border-radius: 999px; font-size: 13px; color: var(--text-2); background: #fff;
  border: 1px solid var(--line); cursor: pointer; transition: .15s; }
.lib-cats a:hover { border-color: var(--primary); color: var(--primary); }
.lib-cats a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.lib-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.lib-head h2 { margin: 0; font-size: 18px; }

.lib-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; min-height: 80px; }
.lib-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; cursor: pointer; transition: .2s; min-width: 0; overflow: hidden; }
.lib-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(28,28,40,.1); }
.lib-cover { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; background: #eee; }
.lib-cover img { width: 100%; height: 100%; object-fit: cover; }
.lib-cover .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #c4c4d4; font-size: 22px; }
.lib-flag { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px;
  color: #fff; background: linear-gradient(135deg, #ffb347, #ff7a45); }
.lib-play { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.45); font-size: 11px; opacity: 0; transition: .2s; }
.lib-card:hover .lib-play { opacity: 1; }
.lib-title { font-size: 14px; font-weight: 600; margin: 10px 2px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-meta { display: flex; align-items: center; gap: 8px; padding: 0 2px 4px; font-size: 12px; }
.lib-cat { font-size: 11px; padding: 1px 7px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); }

/* 详情弹窗 */
.ld-head { display: flex; gap: 16px; align-items: center; }
.ld-cover { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; flex: none; background: #eee; }
.ld-cover img { width: 100%; height: 100%; object-fit: cover; }
.ld-info h3 { margin: 0 0 4px; font-size: 17px; }
.ld-info p { margin: 2px 0; line-height: 1.6; }
.ld-songs { max-height: 46vh; overflow-y: auto; }
.ld-songs .song-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.ld-songs .song-row .idx { width: 22px; text-align: center; color: var(--muted); font-size: 12px; }
.ld-songs .cover.mini { width: 36px; height: 36px; border-radius: 8px; flex: none; }
.ld-songs .sr-meta { flex: 1; min-width: 0; }
.ld-songs .sr-name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager { display: flex; justify-content: center; margin-top: 26px; }

/* 试听条 */
.audio-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 200;
  display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 16px; background: #fff;
  box-shadow: 0 16px 40px rgba(28,28,40,.18); border: 1px solid var(--line); max-width: 720px; width: calc(100% - 32px); }
.ab-cover { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: #eee; flex: none; }
.ab-cover img { width: 100%; height: 100%; object-fit: cover; }
.ab-info { min-width: 0; width: 140px; }
.ab-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-artist { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-audio { flex: 1; height: 36px; }

@media (max-width: 1000px) {
  .lib-grid { grid-template-columns: repeat(2, 1fr); }
  .lib-hero { padding-top: 28px; }
  .lib-hero h1 { font-size: 24px; }
}
