::selection { background: #1E6FFF; }
::-moz-selection { background: #1E6FFF; }

:root {
  --paper: #FFFFFF;
  --paper-2: #EAEAEA;
  --black: #000000;
  --ink: #111111;
  --ink-secondary: #555555;
  --ink-muted: #8A8A8A;
  --hairline: #DADADA;
  --row-hover: #F5F5F5;
  --accent: #1E6FFF;
  --accent-text: #FFFFFF;
  --on-black: #FFFFFF;
  --on-black-muted: #DADADA;
  --parchment: var(--paper);
  --linen: var(--paper-2);
  --wheat: var(--hairline);
  --sage: var(--ink-muted);
  --moss: var(--ink-secondary);
  --clay: var(--accent);
  --bark: var(--ink);
  --night: var(--black);
  --font-display: Georgia, 'Times New Roman', serif;
  --font-ui: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', Menlo, Consolas, monospace;
  --tracking-label: 0.16em;
  --ease-out: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ── Labels ── */
body .new-label { display: block; font-family: var(--font-ui); font-size: 11px; font-weight: 500; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }

/* ── Mixing page ── */
body .mixing-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; background: #FFFFFF; }
body .mixing-intro { padding: 48px 40px; border-right: 1px solid var(--hairline); background: #FFFFFF !important; }
body .mixing-intro h2 { font-family: var(--font-display); font-size: 32px; font-weight: 400; color: var(--ink); letter-spacing: -0.01em; margin: 10px 0 0; }
body .mixing-intro p { font-size: 22px; line-height: 1.4; color: var(--ink-secondary); margin: 12px 0 24px; font-family: var(--font-display); font-style: italic; font-weight: 400; }
body .new-mixing-list { padding: 48px 40px; background: #FFFFFF !important; }

/* ── Feature card ── */
body .feature-card { border: 1px solid var(--hairline); }
body .feature-card__cover { position: relative; aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; overflow: hidden; }
body .feature-card__tag { position: absolute; bottom: 0; left: 0; z-index: 10; background: var(--ink); color: #FFFFFF; font-family: var(--font-ui); font-size: 9px; letter-spacing: var(--tracking-label); padding: 6px 10px; text-transform: uppercase; }
body .feature-card__body { padding: 18px 18px 20px; background: #FFFFFF; }
body .feature-card__title { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--ink); margin: 6px 0 10px; line-height: 1.15; }
body .credits { display: flex; gap: 6px; margin-top: 8px; }
body .chip { display: inline-block; font-family: var(--font-ui); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-secondary); border: 1px solid var(--hairline); padding: 5px 9px; }

/* ── Track list ── */
body .track-row { display: grid; grid-template-columns: 42px 1fr auto; grid-template-rows: auto auto; gap: 2px 16px; align-items: center; padding: 16px 8px; border-bottom: 1px solid var(--hairline); }
body .track-row:hover { background: var(--row-hover); }
body .track-play { grid-column: 1; grid-row: 1/3; width: 38px; height: 38px; border: 1px solid var(--ink); cursor: pointer; position: relative; background: transparent; }
body .track-play::after { content: ''; position: absolute; top: 50%; left: 53%; transform: translate(-50%, -50%); width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--ink); }
body .track-play.is-playing::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 10px; height: 12px; border: none; background: transparent; box-shadow: -4px 0 0 2px var(--ink), 4px 0 0 2px var(--ink); }
body .track-title { grid-column: 2; grid-row: 1; font-family: var(--font-display); font-size: 16px; font-weight: 400; color: var(--ink); margin: 0; line-height: 1.2; display: block; }
body .track-sub { grid-column: 2; grid-row: 2; font-size: 11.5px; color: var(--ink-secondary); font-family: var(--font-ui); display: block; }
body .track-dur { grid-column: 3; grid-row: 1/3; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); display: flex; align-items: center; }
body .track-video-link { display: none; }

/* ── Mixing transport bar ── */
body .track-player { grid-column: 1/-1; overflow: hidden; max-height: 0; transition: max-height 0.3s ease; width: 100%; box-sizing: border-box; }
body .track-player.open { max-height: 44px; }
body .tp-bar { display: flex; align-items: center; gap: 12px; padding: 0 8px 0 54px; height: 44px; width: 100%; box-sizing: border-box; }
body .tp-wrap { flex: 1; height: 4px; background: var(--hairline); cursor: pointer; position: relative; }
body .tp-fill { height: 100%; background: var(--ink); width: 0%; pointer-events: none; }
body .tp-current { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); min-width: 32px; text-align: right; }

/* ── CTA block ── */
body .cta-block { margin-top: 28px; padding: 20px; background: var(--paper-2); }
body .cta-block__q { display: block; font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--ink); }
body .cta-block__btn { margin-top: 12px; }
body .btn-primary { display: inline-block; font-family: var(--font-ui); font-size: 11px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: #FFFFFF; background: var(--ink); padding: 12px 22px; text-decoration: none; }
body .btn-primary:hover { opacity: .92; }

/* ── Store rail (legacy) ── */
body .store-index { display: grid; grid-template-columns: 320px 1fr; }
body .store-rail { padding: 48px 40px; border-right: 1px solid var(--hairline); background: var(--paper-2); }
body .store-rail h2 { font-family: var(--font-display); font-size: 32px; font-weight: 400; color: var(--ink); margin: 10px 0 14px; line-height: 1.1; }
body .store-rail__intro { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--ink-secondary); margin: 0 0 24px; line-height: 1.45; }
body .filter-list { border-top: 1px solid var(--hairline); }
body .filter-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--hairline); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); cursor: pointer; }
body .filter-row.is-active { color: var(--ink); }
body .lib-grid { padding: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-content: start; }
body .lib-card { display: flex; border: 1px solid var(--hairline); background: var(--paper); }
body .lib-card:hover { border-color: var(--ink); }
body .lib-card__cover { position: relative; width: 120px; flex-shrink: 0; display: flex; align-items: flex-end; padding: 10px; background: var(--ink); }
body .lib-card__play { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.92); }
body .lib-card__new { position: absolute; top: 0; left: 0; background: var(--accent); color: #FFFFFF; font-size: 8px; letter-spacing: var(--tracking-label); padding: 4px 7px; }
body .lib-card__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
body .lib-card__meta { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
body .lib-card__title { font-family: var(--font-display); font-size: 17px; color: var(--ink); }
body .lib-card__desc { font-size: 12px; color: var(--ink-secondary); line-height: 1.45; flex: 1; }
body .lib-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
body .price { font-family: var(--font-display); font-size: 17px; color: var(--ink); }

/* ── Store card audio player ── */
body .card-play-btn { position: absolute; bottom: 12px; left: 12px; width: 40px; height: 40px; background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; font-size: 13px; color: #111111; transition: background 200ms ease, color 200ms ease; user-select: none; }
body .card-play-btn:hover { background: #1E6FFF; color: #FFFFFF; }
body .card-play-btn.is-playing { background: #1E6FFF; color: #FFFFFF; }
body .card-transport { position: absolute; bottom: 0; left: 0; right: 0; height: 28px; background: rgba(0,0,0,0.65); display: flex; align-items: center; gap: 10px; padding: 0 12px; z-index: 9; box-sizing: border-box; }
body .ct-track { flex: 1; height: 4px; background: rgba(255,255,255,0.25); position: relative; cursor: pointer; }
body .ct-fill { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: #1E6FFF; pointer-events: none; }
body .ct-time { font-family: var(--font-mono); font-size: 10px; color: #FFFFFF; white-space: nowrap; min-width: 28px; text-align: right; }


/* ── Product page audio player ── */
body .prod-player { display: grid; grid-template-columns: 42px 1fr auto; grid-template-rows: auto auto; gap: 2px 16px; align-items: center; padding: 16px 8px; border-bottom: 1px solid #DADADA; width: 100%; box-sizing: border-box; }
body .prod-play-btn { grid-column: 1; grid-row: 1/3; width: 38px; height: 38px; border: 1px solid #111111; cursor: pointer; position: relative; background: transparent; flex-shrink: 0; }
body .prod-play-btn::after { content: ''; position: absolute; top: 50%; left: 53%; transform: translate(-50%, -50%); width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #111111; }
body .prod-play-btn.is-playing::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 10px; height: 12px; border: none; background: transparent; box-shadow: -4px 0 0 2px #111111, 4px 0 0 2px #111111; }
body .prod-label { grid-column: 2; grid-row: 1; font-size: 16px; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; color: #111111; line-height: 1.2; }
body .prod-dur { grid-column: 3; grid-row: 1/3; font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; color: #8A8A8A; display: flex; align-items: center; }
body .prod-transport { grid-column: 1/-1; overflow: hidden; max-height: 0; transition: max-height 0.3s ease; width: 100%; box-sizing: border-box; }
body .prod-transport.open { max-height: 44px; }
body .prod-tp-bar { display: flex; align-items: center; gap: 12px; padding: 0 8px 0 54px; height: 44px; width: 100%; box-sizing: border-box; }
body .prod-tp-current { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 11px; color: #8A8A8A; min-width: 32px; text-align: right; }
body .prod-tp-wrap { flex: 1; height: 20px; background: transparent; cursor: pointer; position: relative; display: flex; align-items: center; }
body .prod-tp-wrap::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 4px; background: #DADADA; transform: translateY(-50%); }
body .prod-tp-fill { position: absolute; top: 50%; left: 0; height: 4px; background: #111111; width: 0%; transform: translateY(-50%); pointer-events: none; }

/* ── Responsive ── */
@media (max-width: 860px) {
  body .mixing-split, body .store-index { grid-template-columns: 1fr; }
  body .mixing-intro { border-right: none; border-bottom: 1px solid var(--hairline); }
  body .store-rail { border-right: none; border-bottom: 1px solid var(--hairline); }
  body .lib-grid { grid-template-columns: 1fr; padding: 24px; }
  body .new-mixing-list { padding: 24px; }
}
