body.has-np { padding-bottom: 92px; }
.local[hidden] { display: none; }
.section-head .actions { display: flex; gap: 8px; }
.link-btn { border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; }
.link-btn:hover { color: var(--accent); background: var(--hover); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card-item {
    display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    transition: border-color .2s, background .2s;
}
.card-item:hover { border-color: var(--accent); background: var(--surface-2); }
.card-item.is-current { border-color: var(--accent); }
.card-art { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.card-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.36); }
.card-body { min-width: 0; }
.card-title { font-weight: 700; font-size: 14.5px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-meta { color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.card-meta .resume { color: var(--accent); font-weight: 700; }
.card-actions { display: flex; flex-direction: column; gap: 6px; }
.icon-btn {
    width: 36px; height: 36px; padding: 0; border-radius: 999px; border: 1px solid var(--line-2);
    background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer;
    transition: background .15s, transform .15s;
}
.icon-btn:hover { background: var(--hover); transform: translateY(-1px); }
.icon-btn.primary { background: var(--grad); border-color: transparent; color: #fff; }
.icon-btn.danger { color: var(--muted); }
.icon-btn.danger:hover { color: var(--accent-2); }
.card-play .ico-pause { display: none; }
.card-item.is-playing .card-play .ico-play { display: none; }
.card-item.is-playing .card-play .ico-pause { display: block; }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }

.np {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--surface); border-top: 1px solid var(--line-2);
    box-shadow: 0 -10px 30px rgba(0,0,0,.35);
    transform: translateY(110%); transition: transform .25s ease;
}
.np.is-open { transform: none; }
.np-bar { position: absolute; left: 0; right: 0; top: -10px; height: 24px; cursor: pointer; direction: ltr; touch-action: none; outline: none; z-index: 2; }
.np-bar::before, .np-buffer, .np-progress { content: ""; position: absolute; left: 0; top: 10px; height: 4px; transition: height .12s, top .12s; }
.np-bar::before { right: 0; background: var(--line-2); }
.np-bar:hover::before, .np-bar.is-dragging::before, .np-bar:hover .np-buffer, .np-bar:hover .np-progress, .np-bar.is-dragging .np-buffer, .np-bar.is-dragging .np-progress { height: 8px; top: 8px; }
.np-buffer { width: 0; background: rgba(127,127,127,.35); }
.np-progress { width: 0; background: var(--grad); }
.np-handle { position: absolute; right: -8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.5); opacity: 0; transform: scale(.8); transition: opacity .15s, transform .15s; }
.np-bar:hover .np-handle, .np.is-playing .np-handle, .np-bar.is-dragging .np-handle { opacity: 1; transform: scale(1); }
.np-bar.is-dragging .np-handle { transform: scale(1.25); }
@media (hover: none) { .np-handle { opacity: 1; transform: scale(1); } }
.np-tip { position: absolute; bottom: calc(100% - 8px); left: 0; transform: translateX(-50%); padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.np-bar.is-dragging .np-tip, .np-bar.is-hover .np-tip { opacity: 1; }
.np-inner { display: flex; align-items: center; gap: 12px; height: 76px; }
.np-art { width: 50px; height: 50px; border-radius: 10px; overflow: hidden; background: var(--surface-2); flex: 0 0 auto; }
.np-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.36); }
.np-info { flex: 1 1 auto; min-width: 0; }
.np-title { font-weight: 700; font-size: 14px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-ctrl { display: flex; align-items: center; gap: 6px; direction: ltr; flex: 0 0 auto; }
.np-play { width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(255,80,60,.4); }
.np-play .ico-pause, .np-play .ico-spinner { display: none; }
.np.is-playing .np-play .ico-play { display: none; }
.np.is-playing .np-play .ico-pause { display: block; }
.np.is-loading .np-play .ico-play, .np.is-loading .np-play .ico-pause { display: none; }
.np.is-loading .np-play .ico-spinner { display: block; animation: ap-spin .8s linear infinite; }
@keyframes ap-spin { to { transform: rotate(360deg); } }
.np-skip { width: 36px; height: 36px; border: 0; background: transparent; color: var(--text); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.np-skip:hover { background: var(--hover); }
.np-skip[disabled] { opacity: .3; cursor: default; }
.np-time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; direction: ltr; flex: 0 0 auto; white-space: nowrap; }
.np-close { width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted); border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.np-close:hover { color: var(--text); background: var(--hover); }
@media (max-width: 640px) { .np .np-time, .np .np-vol { display: none; } .np .np-inner { gap: 6px; height: 68px; } .np .np-art { width: 44px; height: 44px; } .np .np-play { width: 40px; height: 40px; } .np .np-skip, .np .np-close { width: 32px; height: 32px; } }
@media (max-width: 420px) { .np .np-dl { display: none; } }

.vol { display: flex; align-items: center; gap: 6px; direction: ltr; flex: 0 0 auto; }
.vol-btn { width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.vol-btn:hover { color: var(--text); background: var(--hover); }
.vol .ico-mute { display: none; }
.vol.is-muted .ico-vol { display: none; }
.vol.is-muted .ico-mute { display: block; }
.vol-range { -webkit-appearance: none; appearance: none; width: 84px; height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--accent) var(--v, 100%), var(--bar-bg, rgba(127,127,127,.3)) var(--v, 100%)); outline: none; cursor: pointer; margin: 0; }
.vol-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.vol-range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.vol-range::-moz-range-track { height: 4px; border-radius: 2px; background: transparent; }
@media (max-width: 640px) { .vol-range { display: none; } }
