/* workspace/eq-music/style.css */
:root {
  --bg: #0d0f13;
  --panel: #151920;
  --panel-2: #1b2029;
  --line: #262c37;
  --text: #e6e2d8;
  --muted: #8d93a0;
  --faint: #5d6370;
  --loud: #f0b25a;
  --danger: #e06a5a;
  --radius: 12px;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --serif: Georgia, "Palatino Linotype", "Book Antiqua", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); }
body { min-height: 100vh; background: radial-gradient(1200px 500px at 20% -10%, #1a1f2b 0%, var(--bg) 60%) fixed; }
a { color: inherit; }
header.page { max-width: 1480px; margin: 0 auto; padding: 40px 24px 12px; }
.eyebrow { font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
h1 { font: 400 40px/1.1 var(--serif); margin: 10px 0 8px; letter-spacing: .01em; }
.lede { color: var(--muted); max-width: 760px; font-size: 15px; line-height: 1.55; margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 22px; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }
.chip { font: 500 12px/1 var(--sans); color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 11px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); }
.chip[aria-pressed="true"] { color: var(--text); border-color: var(--c, var(--muted)); background: color-mix(in srgb, var(--c, #888) 14%, transparent); }
.master { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.progress { font: 12px var(--mono); color: var(--faint); }
main { max-width: 1480px; margin: 0 auto; padding: 16px 24px 60px; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.card { --c: #888; position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 16px 12px; container-type: inline-size; transition: border-color .2s, box-shadow .2s; min-width: 0; }
.card::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); opacity: .75; }
.card.playing { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent),
  0 12px 40px -16px color-mix(in srgb, var(--c) 45%, transparent); }
.card[hidden] { display: none; }
.head { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.play { width: 44px; height: 44px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--c) 60%, var(--line));
  background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--text); cursor: pointer; display: grid; place-items: center; padding: 0; }
.play:hover { background: color-mix(in srgb, var(--c) 28%, transparent); }
.play:focus-visible, .chip:focus-visible, input:focus-visible, canvas:focus-visible { outline: 2px solid var(--c, #aaa); outline-offset: 2px; }
.play svg { width: 16px; height: 16px; fill: currentColor; }
.play .i-pause { display: none; }
.card.playing .play .i-play { display: none; }
.card.playing .play .i-pause { display: block; }
.card.loading .play { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.title { font: 400 18px/1.25 var(--serif); margin: 0; overflow-wrap: anywhere; }
.artist { font-size: 13px; color: var(--muted); margin-top: 3px; }
.mood { font: 600 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  padding: 5px 8px; border-radius: 999px; white-space: nowrap; align-self: start; }
.why { font-size: 13px; line-height: 1.5; color: #b9b5ab; margin: 10px 0 12px; }
.viz { display: grid; grid-template-columns: 1fr; gap: 8px; }
@container (min-width: 520px) { .viz { grid-template-columns: 2fr 1fr; } }
@container (max-width: 420px) { .head { grid-template-columns: 44px 1fr; } .head .mood { grid-column: 2; grid-row: 1; justify-self: start; margin-bottom: 2px; }
  .head > div { grid-column: 2; grid-row: 2; } .head .play { grid-row: 1 / span 2; } }
.panel { position: relative; background: #0a0c10; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; height: 76px; }
.panel canvas { display: block; width: 100%; height: 100%; }
.panel .label { position: absolute; left: 8px; top: 6px; font: 600 9px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); pointer-events: none; }
.panel .note { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: var(--faint); pointer-events: none; text-align: center; padding: 0 10px; }
.overview canvas { cursor: pointer; }
.hover-time { position: absolute; top: 6px; right: 8px; font: 11px var(--mono); color: var(--text); pointer-events: none; opacity: 0; }
.overview:hover .hover-time { opacity: .85; }
.seekbar { width: 100%; display: none; }
.card.no-overview .seekbar { display: block; margin-top: 6px; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; font: 12px var(--mono); color: var(--muted); }
.time { min-width: 96px; }
.vol { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.vol svg { width: 14px; height: 14px; fill: var(--muted); display: block; }
input[type=range] { accent-color: var(--c, #c9a45c); }
.vol input { width: 110px; }
.vol output { min-width: 32px; text-align: right; }
.meta { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.meta a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--faint); }
.meta a:hover { color: var(--text); }
.warn { color: var(--danger); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-right: 6px; }
footer { max-width: 1480px; margin: 0 auto; padding: 0 24px 40px; color: var(--faint); font-size: 12px; line-height: 1.6; }
@media (max-width: 600px) {
  header.page { padding: 24px 16px 8px; }
  main { padding: 12px 16px 40px; }
  footer { padding: 0 16px 32px; }
  h1 { font-size: 30px; }
  .vol input { width: 84px; }
  .master input { width: 90px; }
}
