/* Listen page + playable song cards (also used on the song ideas hub) */
.ls-hero h1 span { color: var(--accent-hi); }
.ls-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.ls-actions .btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: inherit; font-weight: 700; }
.ls-actions .btn svg { width: 18px; height: 18px; }
.ls-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 26px; }

.ls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px 20px; }
.ls-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ls-card[hidden] { display: none; }
.ls-cover { position: relative; display: block; padding: 0; margin: 0 0 8px; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 18px;
  overflow: hidden; cursor: pointer; background: #000; aspect-ratio: 1; transition: transform .2s ease, border-color .2s ease; }
.ls-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 6s ease, filter .3s; }
.ls-card:hover .ls-cover, .ls-card.on .ls-cover { transform: translateY(-3px); border-color: rgba(233, 168, 58, 0.6); }
.ls-card.playing .ls-cover img { transform: scale(1.06); filter: brightness(.82); }
.ls-pp { position: absolute; right: 12px; bottom: 12px; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #0b0b0d; background: linear-gradient(135deg, var(--accent-hi), var(--accent)); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); transition: transform .15s; }
.ls-pp svg { width: 22px; height: 22px; }
.ls-cover:hover .ls-pp { transform: scale(1.08); }
.ls-pp .i-pause, .ls-card.playing .ls-pp .i-play { display: none; }
.ls-card.playing .ls-pp .i-pause { display: block; }
.ls-len { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px); }
.ls-len::before { content: "\266A  "; color: var(--accent-hi); }
.ls-eq { position: absolute; left: 14px; bottom: 16px; display: none; align-items: flex-end; gap: 3px; height: 22px; }
.ls-eq i { width: 4px; height: 100%; border-radius: 2px; background: var(--accent-hi); transform-origin: bottom; animation: ls-eq .9s ease-in-out infinite alternate; }
.ls-eq i:nth-child(2) { animation-duration: .7s; } .ls-eq i:nth-child(3) { animation-duration: 1.1s; } .ls-eq i:nth-child(4) { animation-duration: .8s; animation-delay: -.3s; }
.ls-card.playing .ls-eq { display: flex; }
@keyframes ls-eq { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
.ls-card b { font-size: 16px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-meta { font-size: 13px; color: var(--text-faint); line-height: 1.4; }
.ls-make { margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--accent-hi); text-decoration: none; }
.ls-make:hover { text-decoration: underline; }

/* the bar at the bottom */
.ls-player { position: fixed; left: 248px; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 52px minmax(120px, 1fr) auto minmax(180px, 1.4fr) auto;
  align-items: center; gap: 16px; padding: 10px 22px; background: rgba(12, 13, 18, 0.97); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(233, 168, 58, 0.35); box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45); }
.ls-player[hidden] { display: none; }
body.ls-open { padding-bottom: 80px; }
.ls-player img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.lp-txt { min-width: 0; display: flex; flex-direction: column; }
.lp-txt b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-txt span { font-size: 12.5px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-ctl { display: flex; align-items: center; gap: 6px; }
.lp-ctl button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lp-ctl button:hover { color: var(--accent-hi); }
.lp-ctl svg { width: 20px; height: 20px; }
.lp-ctl .lp-pp { width: 46px; height: 46px; color: #0b0b0d; background: linear-gradient(135deg, var(--accent-hi), var(--accent)); }
.lp-ctl .lp-pp:hover { color: #0b0b0d; }
.lp-pp .i-pause, .ls-player.playing .lp-pp .i-play { display: none; }
.ls-player.playing .lp-pp .i-pause { display: block; }
.lp-seek { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.lp-bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); cursor: pointer; position: relative; touch-action: none; }
.lp-bar::before { content: ""; position: absolute; inset: -10px 0; }
.lp-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--accent-lo), var(--accent-hi)); }
.lp-make { padding: 9px 14px; border-radius: 10px; border: 1px solid rgba(233, 168, 58, 0.5); color: var(--accent-hi); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.lp-make:hover { background: rgba(233, 168, 58, 0.1); }

@media (max-width: 900px) {
  .ls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .ls-pp { width: 42px; height: 42px; right: 8px; bottom: 8px; }
  .ls-player { left: 0; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; padding: 8px 12px; }
  .ls-player img { width: 44px; height: 44px; }
  .lp-seek { grid-column: 1 / -1; order: 5; }
  .lp-make { display: none; }
  body.ls-open { padding-bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) { .ls-eq i { animation: none; } .ls-cover img { transition: none; } }
.ls-title { text-decoration: none; min-width: 0; display: block; }
.ls-title:hover b { color: var(--accent-hi); }
.ls-title b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
