/* luci.rocks/music (Phase 3). Builds on site.css tokens. */
:root { --wave: #c9c4b8; --wave-played: #1b1a17; --good: #15803d; --bad: #b42318; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --wave: #4a4843; --wave-played: #f1efe9; --good: #4ade80; --bad: #f97066; }
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
.music h2 { font-size: 1.05rem; margin: 32px 0 10px; color: var(--ink-2); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.m-head { margin-bottom: 8px; }
.m-head h1 { font-size: clamp(2.4rem, 9vw, 3.6rem); line-height: 1; margin: 12px 0 8px; letter-spacing: -0.03em; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.item { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.item.on { border-color: var(--accent); }
.item .play { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink);
  font-size: 1rem; cursor: pointer; display: grid; place-items: center; }
.item .play:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.item .body { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: baseline; }
.item .title { font-weight: 650; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .title:hover { text-decoration: underline; }
.item .meta { grid-column: 1; color: var(--ink-3); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .time { grid-column: 2; grid-row: 1; color: var(--ink-2); font-size: .82rem; font-variant-numeric: tabular-nums; }
.item .wave { grid-column: 1 / -1; width: 100%; height: 34px; margin-top: 6px; cursor: pointer; display: block; }
.list.big .item { padding: 16px 18px; }
.list.big .wave { height: 64px; }
.list.big .play { width: 56px; height: 56px; font-size: 1.15rem; }

.one { margin-top: 8px; }
.one .kind { margin: 18px 0 2px; color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.one h1 { font-size: clamp(2rem, 7vw, 3rem); line-height: 1.05; margin: 0 0 6px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.one > .meta { color: var(--ink-2); margin: 0 0 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: flex-start; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); padding: 8px 14px;
  border-radius: 10px; cursor: pointer; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.embed[open] { flex-basis: 100%; }
.one .list.big .title, .one .list.big .meta { display: none; }   /* the heading above already says it */
.one .list.big .item .body { row-gap: 4px; }
.embed summary { list-style: none; display: inline-flex; }
.embed summary::-webkit-details-marker { display: none; }
.embed[open] summary { margin-bottom: 8px; }
.embed p { margin: 0 0 6px; color: var(--ink-2); font-size: .9rem; }
.embed textarea { width: 100%; font: 12px/1.4 ui-monospace, monospace; padding: 8px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); margin-bottom: 6px; }

.rights { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 14px; }
.rights h2 { margin-top: 0; }
.rights > p { margin: 0 0 14px; color: var(--ink-2); }
.rights form { display: grid; gap: 12px; }
.rights label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.rights input:not([type=radio]), .rights textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); font-weight: 400; }
.rights fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.rights legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.rights label.chk { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.rights .btn { justify-self: start; }
.rights .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { min-height: 1.4em; margin: 0; color: var(--ink-2); font-size: .92rem; }
.msg.good { color: var(--good); }
.msg.bad { color: var(--bad); }

/* the embed player sits in other people's pages: no page chrome, transparent around the card */
.embed-body { background: transparent; }
.embed-player { padding: 0; margin: 0; }
.embed-player .by { margin: 4px 2px 0; font-size: .78rem; color: var(--ink-3); }
.embed-player .by a { text-decoration: none; }
.embed-player .list.big .wave { height: 44px; }
.embed-player .list.big .item { padding: 12px 14px; }
