/* Soundstroll: a pachinko parlour at night. Lacquer-red cabinets with chrome rails and brass trays on parlour blue;
   Bungee for the signage, Figtree for everything you read. The engines' own panels use the MD3 tokens below. */
:root {
  --ss-night: #0f1a3c;
  --ss-deep: #0a1230;
  --ss-lacquer: #c8102e;
  --ss-lacquer-dk: #7d0a1d;
  --ss-brass: #e8b931;
  --ss-brass-dk: #a97c12;
  --ss-chrome: #d9dee4;
  --ss-ball: #f4f6f9;
  --ss-text: #eef0f7;
  --ss-dim: #aab3d4;
  --ss-sign: "Bungee", "Figtree", system-ui, sans-serif;
  --ss-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;

  /* MD3 tokens for the engines' panels (a dark scheme built on the parlour blue, brass as primary) */
  --md-sys-color-primary: #f0c44a;
  --md-sys-color-on-primary: #2b2000;
  --md-sys-color-primary-container: #5a4300;
  --md-sys-color-on-primary-container: #ffe08f;
  --md-sys-color-secondary: #b8c3f0;
  --md-sys-color-on-secondary: #1d2a5a;
  --md-sys-color-secondary-container: #2a3a78;
  --md-sys-color-on-secondary-container: #dde3ff;
  --md-sys-color-tertiary: #ff8a95;
  --md-sys-color-on-tertiary: #5b0010;
  --md-sys-color-error: #ffb4ab;
  --md-sys-color-error-container: #93000a;
  --md-sys-color-surface: #0f1a3c;
  --md-sys-color-surface-container-lowest: #0a1230;
  --md-sys-color-surface-container-low: #121f47;
  --md-sys-color-surface-container: #16244f;
  --md-sys-color-surface-container-high: #1e2d5e;
  --md-sys-color-surface-container-highest: #27376c;
  --md-sys-color-on-surface: #eef0f7;
  --md-sys-color-on-surface-variant: #b6bfdf;
  --md-sys-color-outline: #7d88b0;
  --md-sys-color-outline-variant: #34437a;
  --dw-amber: #f0c44a;
  --dw-radius: 16px;
  --dw-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --dw-sans: var(--ss-sans);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ss-night); color: var(--ss-text); font: 400 16px/1.55 var(--ss-sans); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 1.5px) 0 0 / 22px 22px, radial-gradient(ellipse at 50% -10%, #213a86 0, transparent 60%); }
a { color: var(--ss-brass); }
:focus-visible { outline: 3px solid var(--ss-brass); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
main { flex: 1; }

/* ── header ── */
.ss-bar { position: sticky; top: 0; z-index: 30; background: rgba(10, 18, 48, .9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.ss-bar .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.ss-mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ss-text); font: 400 22px/1 var(--ss-sign); letter-spacing: .01em; }
.ss-mark svg { width: 30px; height: 30px; }
.ss-nav { display: flex; gap: 4px; }
.ss-nav a { color: var(--ss-dim); text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 20px; }
.ss-nav a:hover { color: var(--ss-text); background: rgba(255,255,255,.06); }
.ss-nav a.on { color: var(--ss-deep); background: var(--ss-brass); }
.ss-find { margin-left: auto; position: relative; width: min(340px, 40vw); }
.ss-find input, .ss-search input { width: 100%; height: 42px; border-radius: 21px; border: 2px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: var(--ss-text);
  padding: 0 16px 0 42px; font: 500 15px var(--ss-sans); }
.ss-find input::placeholder, .ss-search input::placeholder { color: var(--ss-dim); }
.ss-find input:focus, .ss-search input:focus { outline: none; border-color: var(--ss-brass); background: rgba(255,255,255,.1); }
.ss-find svg, .ss-search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--ss-dim); pointer-events: none; }
.ss-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #16244f; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.45); z-index: 40; }
.ss-suggest[hidden] { display: none; }
.ss-suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--ss-text); text-decoration: none; }
.ss-suggest a:hover, .ss-suggest a.on { background: rgba(255,255,255,.08); }
.ss-suggest small { display: block; color: var(--ss-dim); font-size: 12.5px; }
.ss-suggest .all { justify-content: center; color: var(--ss-brass); font-weight: 600; }
.ball { flex: none; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0, var(--c, #ccc) 45%, color-mix(in srgb, var(--c, #ccc) 55%, #000) 100%); box-shadow: 0 2px 4px rgba(0,0,0,.4); }
@media (max-width: 720px) { .ss-nav a { padding: 8px 10px; } .ss-mark span { display: none; } .ss-find { width: auto; flex: 1; } }

/* ── buttons (used by the engines' panels too) ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 20px; border: none; cursor: pointer;
  font: 600 14px var(--ss-sans); text-decoration: none; background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: default; filter: none; }
.btn.tonal { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.btn.outline { background: transparent; color: var(--ss-text); border: 2px solid rgba(255,255,255,.25); }
.btn.big { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 26px; }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn.red { background: var(--ss-lacquer); color: #fff; }

/* ── type ── */
h1, h2, h3 { margin: 0; }
.sign { font: 400 clamp(34px, 5.2vw, 64px)/1.02 var(--ss-sign); letter-spacing: -.005em; }
.sign-md { font: 400 clamp(26px, 3.2vw, 38px)/1.1 var(--ss-sign); }
.lead { font-size: 19px; line-height: 1.55; color: var(--ss-dim); max-width: 34em; }
section.band { padding: 72px 0; }
section.band + section.band { border-top: 1px solid rgba(255,255,255,.07); }
.band-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }

/* ── the cabinet (home board and the artist stage) ── */
.cab { position: relative; background: linear-gradient(160deg, #e0233f 0, var(--ss-lacquer) 35%, var(--ss-lacquer-dk) 100%); border-radius: 30px; padding: 16px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.35), 0 30px 60px rgba(0,0,0,.45); }
.cab::before, .cab::after { content: ''; position: absolute; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #9aa3ad); }
.cab::before { left: 18px; } .cab::after { right: 18px; }
.marquee { display: flex; align-items: center; gap: 14px; padding: 2px 26px 14px; color: #fff; }
.marquee h1 { font: 400 clamp(22px, 3.4vw, 40px)/1.05 var(--ss-sign); text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.marquee .meta { color: #ffd6dc; font-size: 14px; font-weight: 500; }
.marquee .nav { margin-left: auto; display: flex; gap: 6px; }
.marquee .nav a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: rgba(0,0,0,.22); text-decoration: none; font-weight: 700; }
.marquee .nav a:hover { background: rgba(0,0,0,.4); }
.rail { border-radius: 20px; padding: 7px; background: linear-gradient(145deg, #fff 0, #9aa3ad 22%, #eef1f4 48%, #7c858f 75%, #dfe3e8 100%); box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.field { position: relative; border-radius: 14px; overflow: hidden; background: #000; }
.tray { margin-top: 14px; border-radius: 18px; padding: 12px 14px; background: linear-gradient(180deg, #ffe37a 0, var(--ss-brass) 40%, var(--ss-brass-dk) 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.25); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; color: var(--ss-deep); }
.launch { display: flex; gap: 10px; align-items: center; }
.launch .go { width: 64px; height: 64px; border-radius: 50%; border: none; cursor: pointer; padding: 0; font: 400 13px var(--ss-sign); color: #fff;
  background: radial-gradient(circle at 35% 28%, #ff6b7d 0, var(--ss-lacquer) 55%, var(--ss-lacquer-dk) 100%); box-shadow: 0 4px 0 #5b0614, inset 0 2px 0 rgba(255,255,255,.4); }
.launch .go:active { translate: 0 3px; box-shadow: 0 1px 0 #5b0614; }
.launch .again { height: 40px; border-radius: 20px; border: 2px solid rgba(10,18,48,.35); background: rgba(255,255,255,.25); color: var(--ss-deep); font: 700 13.5px var(--ss-sans); padding: 0 14px; cursor: pointer; }
.plate { background: var(--ss-deep); color: var(--ss-text); border-radius: 12px; padding: 9px 14px; min-height: 58px; box-shadow: inset 0 2px 6px rgba(0,0,0,.6); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.plate b { font: 400 15px/1.2 var(--ss-sign); color: var(--ss-brass); }
.plate span { font-size: 13px; color: var(--ss-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.keys { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.key { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: none; padding: 0; cursor: pointer; color: var(--ss-deep); font: 700 11.5px var(--ss-sans); }
.key i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0, #dfe3e8 45%, #8f98a3 100%); box-shadow: 0 3px 0 rgba(0,0,0,.35); color: var(--ss-deep); }
.key i svg { width: 22px; height: 22px; }
.key[aria-selected="true"] i { background: radial-gradient(circle at 35% 30%, #4a5fa8 0, var(--ss-deep) 70%); color: var(--ss-brass); box-shadow: 0 1px 0 rgba(0,0,0,.35), inset 0 2px 6px rgba(0,0,0,.6); translate: 0 2px; }
@media (max-width: 900px) {
  .tray { grid-template-columns: auto minmax(0, 1fr); }
  .keys { grid-column: 1 / -1; justify-content: space-between; }
  .key i { width: 42px; height: 42px; }
  .cab { padding: 10px; border-radius: 22px; } .marquee { padding: 2px 8px 10px; }
}

/* ── the drawer under the tray: one panel at a time ── */
.drawer { margin: 18px 0 40px; }
.panel { background: var(--md-sys-color-surface-container-low); border: 1px solid var(--md-sys-color-outline-variant); border-radius: 22px; padding: 20px 22px; }
.panel[hidden] { display: none; }
.panel > h2 { font: 400 20px var(--ss-sign); margin-bottom: 4px; }
.panel > p.hint { color: var(--ss-dim); margin: 0 0 14px; font-size: 14.5px; }
.panel .ag-card { background: transparent; border: none; padding: 0; margin: 0 0 18px; }
.panel .ag-card:last-child { margin-bottom: 0; }
.panel .ag-card > h3 { display: flex; font: 700 15px var(--ss-sans); text-transform: none; letter-spacing: 0; color: var(--ss-text); margin: 4px 0 10px; }
.panel .kb-card, .panel .wr-card, .panel .pr-lab { margin-top: 0; }
.panel .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.field .ag-stage { border: none; border-radius: 0; }

.ss-hide { display: none !important; }
.about-text p { max-width: 46em; color: var(--ss-dim); }
.about-text p.first { color: var(--ss-text); font-size: 17px; }

/* ── cards for artists ── */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.acard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; border-radius: 20px; background: #16244f; border: 1px solid rgba(255,255,255,.08); color: var(--ss-text); text-decoration: none; overflow: hidden; }
.acard::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--c); }
.acard:hover { border-color: color-mix(in srgb, var(--c) 70%, transparent); background: #1a2a5c; }
.acard .top { display: flex; align-items: center; gap: 12px; }
.acard .ball { width: 34px; height: 34px; }
.acard b { font: 700 18px/1.2 var(--ss-sans); }
.acard small { display: block; color: var(--ss-dim); font-size: 13px; }
.acard p { margin: 0; color: #d4d9ec; font-size: 14.5px; line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tags span { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 12px; background: rgba(255,255,255,.07); color: var(--ss-dim); }
.acard .tags span.hit { background: color-mix(in srgb, var(--ss-brass) 25%, transparent); color: #ffe7a3; }

/* ── library ── */
.ss-search { position: relative; max-width: 720px; }
.ss-search input { height: 58px; border-radius: 29px; font-size: 18px; padding-left: 54px; }
.ss-search svg { left: 20px; width: 22px; height: 22px; }
.facets { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 8px; }
.facet { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.facet > span { width: 92px; color: var(--ss-dim); font-size: 13.5px; font-weight: 600; }
.fchip { height: 32px; padding: 0 13px; border-radius: 16px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: var(--ss-text); font: 600 13px var(--ss-sans); cursor: pointer; }
.fchip:hover { background: rgba(255,255,255,.06); }
.fchip[aria-pressed="true"] { background: var(--ss-brass); color: var(--ss-deep); border-color: transparent; }
.count { color: var(--ss-dim); margin: 14px 0 16px; font-size: 14.5px; }
.empty { padding: 40px; text-align: center; color: var(--ss-dim); border: 2px dashed rgba(255,255,255,.12); border-radius: 20px; }

/* ── home: shelves of little cabinets ── */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.finder { display: flex; gap: 12px; align-items: center; padding: 34px 0 14px; }
.finder .ss-search { flex: 1; max-width: 760px; }
.finder .btn.big { height: 58px; border-radius: 29px; padding: 0 26px; flex: none; }
.moods { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 4px; scrollbar-width: none; }
.moods::-webkit-scrollbar { display: none; }
.moods .fchip { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.shelf { margin-top: 30px; }
.shelf-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.shelf-head h2 { font: 400 clamp(19px, 2.2vw, 24px)/1.1 var(--ss-sign); }
.shelf-head .n { color: var(--ss-dim); font-weight: 600; font-size: 14px; }
.shelf-head .see { margin-left: auto; font-weight: 600; font-size: 14.5px; text-decoration: none; }
.shelf-head .see:hover { text-decoration: underline; }
.arrows { display: flex; gap: 6px; align-self: center; }
.arr { width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer; font: 700 18px/1 var(--ss-sans); color: var(--ss-deep); background: radial-gradient(circle at 35% 30%, #fff 0, #dfe3e8 45%, #8f98a3 100%); }
.arr:disabled { opacity: .3; cursor: default; }
@media (hover: none) { .arrows { display: none; } }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 196px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; margin: 0 -4px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.poster { scroll-snap-align: start; display: flex; flex-direction: column; gap: 9px; padding: 9px 9px 10px; border-radius: 20px; text-decoration: none; color: var(--ss-deep);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 80%, #fff) 0, var(--c) 40%, color-mix(in srgb, var(--c) 55%, #000) 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.3), 0 10px 22px rgba(0,0,0,.35); transition: translate .18s ease; }
.poster:hover, .poster:focus-visible { translate: 0 -4px; }
.pf { display: block; border-radius: 13px; padding: 4px; background: linear-gradient(145deg, #fff 0, #9aa3ad 22%, #eef1f4 48%, #7c858f 75%, #dfe3e8 100%); }
.pf canvas { display: block; width: 100%; aspect-ratio: 6 / 5; border-radius: 9px; }
.np { display: block; border-radius: 10px; padding: 7px 10px 8px; background: linear-gradient(180deg, #ffe37a 0, var(--ss-brass) 45%, var(--ss-brass-dk) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); min-height: 58px; }
.np b { display: block; font: 400 15px/1.15 var(--ss-sign); }
.np small { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .row { grid-auto-columns: 158px; gap: 12px; } .np b { font-size: 13.5px; } .finder { flex-wrap: wrap; } .finder .btn.big { width: 100%; height: 48px; } }
.studio-strip { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 46px 0 56px; padding: 18px 22px; border-radius: 24px; text-decoration: none; color: #fff;
  background: linear-gradient(160deg, #e0233f 0, var(--ss-lacquer) 40%, var(--ss-lacquer-dk) 100%); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 14px 30px rgba(0,0,0,.35); }
.studio-strip b { font: 400 24px var(--ss-sign); }
.studio-strip > span:nth-of-type(2) { color: #ffd6dc; font-weight: 500; }
.studio-strip .btn { margin-left: auto; background: #fff; color: var(--ss-lacquer-dk); }
.lanes-mini { display: flex; } .lanes-mini .ball { margin-right: -8px; border: 2px solid var(--ss-lacquer-dk); }
@media (prefers-reduced-motion: reduce) { .poster { transition: none; } }

/* ── footer ── */
.ss-foot { border-top: 1px solid rgba(255,255,255,.08); padding: 28px 0 40px; color: var(--ss-dim); font-size: 13.5px; }
.ss-foot .wrap { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; }
.ss-foot p { margin: 0; max-width: 46em; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.launch .ox-btn { display: none; }
/* keep the tray on screen: the playfield gives up height before the tray does */
.field .ag-stage { aspect-ratio: auto; height: clamp(200px, calc(100vh - 330px), 56.25vw); }
.field .ag-stage:fullscreen { height: 100%; }
@media (max-width: 900px) {
  .tray { grid-template-columns: 1fr; }
  .launch { justify-content: flex-start; }
  .plate { min-height: 0; }
  .keys { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .key { font-size: 10.5px; }
  .key i { width: 38px; height: 38px; } .key i svg { width: 19px; height: 19px; }
  .marquee .meta { font-size: 12.5px; }
  .field .ag-stage { height: auto; aspect-ratio: 16 / 10; }
}
