/* Listn player: the sound rows, the cards and the bar along the bottom. Square corners, shading instead of lines,
   one teal accent. Works on the public site (site.css) and in the admin (admin.css): every colour has its own name here. */
.lp-list, .lp, .lp-bar {
    --lp-on: #00f5d8;
    --lp-off: #3b3b3b;
    --lp-hover: rgba(255, 255, 255, 0.55);
    --lp-row: transparent;
    --lp-row-hover: #141414;
    --lp-row-on: #0b1f1c;
    --lp-text: #f5f5f5;
    --lp-text-2: #a9a9a9;
    --lp-text-3: #6f6f6f;
    --lp-raised: #242424;
    --lp-raised-2: #2e2e2e;
    --lp-ink: #00241f;
}

/* ---------- the list ---------- */
.lp-list { display: flex; flex-direction: column; gap: 2px; }
.lp-head, .lp.lp-row {
    display: grid;
    grid-template-columns: 48px 40px minmax(0, 1.5fr) minmax(120px, 1fr) 56px 64px 52px 96px;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
}
.lp-head { padding-top: 0; padding-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lp-text-3); }
.lp-head a { color: inherit; }
.lp-head a.on { color: var(--lp-text); }
.lp.lp-row { background: var(--lp-row); transition: background 0.12s; }
.lp.lp-row:hover { background: var(--lp-row-hover); }
.lp.lp-on { background: var(--lp-row-on); }
.lp.lp-on:hover { background: var(--lp-row-on); }

.lp-art {
    width: 48px; height: 48px; display: block; background: var(--lp-raised) center / cover no-repeat;
    position: relative; overflow: hidden;
}
.lp-art.lp-blank { background: linear-gradient(135deg, #10302b, #0a0a0a 70%); }
.lp-art.lp-blank::after {
    content: ""; position: absolute; inset: 14px; background:
        linear-gradient(var(--lp-on), var(--lp-on)) 0 60% / 3px 40% no-repeat,
        linear-gradient(var(--lp-on), var(--lp-on)) 6px 30% / 3px 70% no-repeat,
        linear-gradient(var(--lp-on), var(--lp-on)) 12px 50% / 3px 50% no-repeat,
        linear-gradient(var(--lp-on), var(--lp-on)) 18px 20% / 3px 80% no-repeat;
    opacity: 0.7;
}

.lp-play {
    width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 0; cursor: pointer;
    background: var(--lp-raised); color: var(--lp-text);
}
.lp-play:hover { background: var(--lp-raised-2); }
.lp-play svg { width: 16px; height: 16px; fill: currentColor; }
.lp-play .lp-i-stop { display: none; }
.lp.lp-going .lp-play { background: var(--lp-on); color: var(--lp-ink); }
.lp.lp-going .lp-play .lp-i-play { display: none; }
.lp.lp-going .lp-play .lp-i-stop { display: block; }

.lp-name { min-width: 0; }
.lp-name b, .lp-name a.lp-title { display: block; font-weight: 500; font-size: 15px; color: var(--lp-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-name a.lp-title:hover { color: var(--lp-on); text-decoration: none; }
.lp-tags { display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; margin-top: 3px; font-size: 12.5px; color: var(--lp-text-3); }
.lp-tags a, .lp-tags span { color: var(--lp-text-3); white-space: nowrap; }
.lp-tags a:hover { color: var(--lp-text); text-decoration: none; }
.lp-tags .lp-pack { color: var(--lp-on); }

.lp-wave { position: relative; height: 34px; cursor: pointer; }
.lp-wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.lp-time, .lp-key, .lp-bpm { font-size: 14px; color: var(--lp-text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-actions { display: flex; gap: 4px; justify-content: flex-end; }
.lp-actions a, .lp-actions button {
    width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 0; padding: 0; cursor: pointer;
    background: transparent; color: var(--lp-text-2);
}
.lp-actions a:hover, .lp-actions button:hover { background: var(--lp-raised); color: var(--lp-text); text-decoration: none; }
.lp-actions svg { width: 18px; height: 18px; fill: currentColor; }
.lp-actions .lp-locked { color: var(--lp-text-3); }

/* ---------- the card: a title over a big waveform (plugin demos, news posts, a pack's demo) ---------- */
.lp.lp-card {
    display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 6px 18px; align-items: center;
    padding: 18px 20px; background: #0e0e0e; margin: 0 0 4px;
}
.lp.lp-card.lp-on { background: var(--lp-row-on); }
.lp.lp-card .lp-play { width: 56px; height: 56px; grid-row: 1 / span 2; }
.lp.lp-card .lp-play svg { width: 20px; height: 20px; }
.lp.lp-card .lp-wave { height: 56px; grid-column: 2 / span 2; }
.lp-card-top { display: flex; align-items: baseline; gap: 12px; min-width: 0; grid-column: 2; }
.lp-card-top b { min-width: 0; font-weight: 600; font-size: 16px; color: var(--lp-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-card-top span { min-width: 0; font-size: 13.5px; color: var(--lp-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp.lp-card .lp-side { grid-column: 3; grid-row: 1; display: flex; align-items: center; gap: 12px; }

/* Dry / With */
.lp-ab { display: inline-flex; background: var(--lp-raised); padding: 3px; gap: 3px; }
.lp-ab button {
    border: 0; border-radius: 0; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
    background: transparent; color: var(--lp-text-2);
}
.lp-ab button[aria-pressed="true"] { background: var(--lp-text); color: #000; }
.lp-ab button[data-w="1"][aria-pressed="true"] { background: var(--lp-on); color: var(--lp-ink); }

/* ---------- the bar along the bottom ---------- */
.lp-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: #0b0b0b; color: var(--lp-text); box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(110%); transition: transform 0.22s ease;
    font-family: inherit;
}
.lp-bar.lp-bar-shown { transform: none; }
.lp-bar [hidden] { display: none !important; }
body.lp-has-bar { padding-bottom: 76px; }
.lp-bar-line { height: 4px; background: #1d1d1d; cursor: pointer; }
.lp-bar-line i { display: block; height: 100%; width: 0; background: var(--lp-on); }
.lp-bar-in { display: flex; align-items: center; gap: 18px; padding: 10px 18px; height: 68px; }
.lp-bar button { border: 0; border-radius: 0; background: transparent; color: var(--lp-text-2); cursor: pointer; padding: 0; display: grid; place-items: center; }
.lp-bar button:hover { color: var(--lp-text); background: var(--lp-raised); }
.lp-bar svg { width: 18px; height: 18px; fill: currentColor; }
.lp-bar-keys { display: flex; gap: 2px; }
.lp-bar-keys button { width: 40px; height: 40px; }
.lp-bar-keys .lp-bar-main { background: var(--lp-on); color: var(--lp-ink); }
.lp-bar-keys .lp-bar-main:hover { background: #6bffec; color: var(--lp-ink); }
.lp-bar-now { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.lp-bar-art { width: 44px; height: 44px; flex: none; background: var(--lp-raised) center / cover no-repeat; }
.lp-bar-art.lp-blank { background: linear-gradient(135deg, #10302b, #0a0a0a 70%); }
.lp-bar-text { min-width: 0; }
.lp-bar-text b { display: block; font-weight: 500; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-bar-text span { display: block; font-size: 12.5px; color: var(--lp-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-bar-facts { display: flex; gap: 22px; }
.lp-bar-facts div { display: flex; flex-direction: column; align-items: center; min-width: 40px; }
.lp-bar-facts b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-bar-facts span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lp-text-3); }
.lp-bar .lp-bar-ab { white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 600; background: var(--lp-raised); color: var(--lp-text); }
.lp-bar .lp-bar-loop { width: 40px; height: 40px; }
.lp-bar .lp-bar-loop[aria-pressed="true"] { color: var(--lp-on); background: #0b1f1c; }
.lp-bar-vol { display: flex; align-items: center; gap: 8px; color: var(--lp-text-2); }
.lp-bar-vol span { display: grid; }
.lp-bar-vol input { width: 110px; accent-color: var(--lp-on); }
.lp-bar .lp-bar-close { width: 36px; height: 36px; }

/* ---------- narrow screens ---------- */
@media (max-width: 980px) {
    .lp-head { display: none; }
    .lp.lp-row { grid-template-columns: 44px 40px minmax(0, 1fr) auto; grid-template-areas: "art play name act" "wave wave wave wave"; row-gap: 8px; }
    .lp.lp-row .lp-art { grid-area: art; width: 44px; height: 44px; }
    .lp.lp-row .lp-play { grid-area: play; }
    .lp.lp-row .lp-name { grid-area: name; }
    .lp.lp-row .lp-actions { grid-area: act; }
    .lp.lp-row .lp-wave { grid-area: wave; }
    .lp.lp-row .lp-time, .lp.lp-row .lp-key, .lp.lp-row .lp-bpm { display: none; }
    .lp-bar-facts, .lp-bar-vol { display: none; }
    .lp-bar-in { gap: 10px; padding: 8px 10px; }
}
@media (max-width: 560px) {
    .lp.lp-card { grid-template-columns: 48px minmax(0, 1fr); padding: 14px; }
    .lp.lp-card .lp-play { width: 48px; height: 48px; }
    .lp.lp-card .lp-side { grid-column: 1 / span 2; grid-row: 3; }
    .lp.lp-card .lp-wave { grid-column: 1 / span 2; grid-row: 2; }
    .lp-card-top { grid-column: 2; grid-row: 1; flex-direction: column; align-items: stretch; gap: 0; }
    .lp-bar .lp-bar-loop, .lp-bar-keys [data-a=prev] { display: none; }
    .lp-bar .lp-bar-ab { max-width: 64px; padding: 8px; }
}
