:root {
  --bg: #0c0c0e;
  --panel: #141417;
  --panel-2: #1a1a1f;
  --line: #26262c;
  --text: #f2f0ea;
  --muted: #9a978e;
  --accent: #f5a623;
  --accent-dim: #b97a10;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Archivo', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--sans); line-height: 1.55;
}
body.player-docked { padding-bottom: 92px; } /* room for docked player */

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,12,14,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--mono); font-weight: 600; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: .04em; }
.brand span { color: var(--accent); margin-left: 6px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 28px; font-size: 14px; letter-spacing: .02em; }
nav a:hover { color: var(--text); }

/* hero */
.hero { padding: 96px 24px 72px; position: relative; overflow: hidden; }
/* audio-reactive backdrop — sits under the copy, ignores pointer input */
#hero-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero > *:not(#hero-fx) { position: relative; z-index: 1; }

/* fx-layer behaviors are scoped behind the .fx class that fx.js adds —
   if the script never runs, content renders normally (no FOUC trap) */
.fx .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.fx .reveal.in { opacity: 1; transform: none; }
.fx .tier { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease; }
.fx .tier::after {
  content: ''; position: absolute; inset: 0; border-radius: 12px; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(245,166,35,.12), transparent 60%);
  opacity: var(--glare, 0); transition: opacity .25s ease;
}
@media (prefers-reduced-motion: reduce) {
  .fx .reveal { opacity: 1; transform: none; transition: none; }
  .fx .tier, .fx .tier::after { transform: none; transition: none; opacity: 0; }
}
.kicker { font-family: var(--mono); color: var(--accent); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.lede { max-width: 620px; color: var(--muted); font-size: 18px; margin-top: 24px; }
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-note { margin-top: 28px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 6px;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: all .15s ease; background: none; color: var(--text);
  font-family: var(--sans);
}
.btn.primary { background: var(--accent); color: #14100a; }
.btn.primary:hover { background: #ffc14d; }
.btn.ghost { border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent-dim); }
.btn.full { width: 100%; text-align: center; margin-top: 18px; }
.btn.sm { padding: 8px 14px; font-size: 12px; }

/* sections */
section { padding: 72px 24px; }
.page-head { padding: 72px 24px 32px; }
.page-head h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; letter-spacing: -0.01em; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.01em; }
.sub { color: var(--muted); margin-top: 10px; max-width: 640px; }
.fine { font-size: 12px; color: var(--muted); }

/* ---------- catalog: filters + compact table ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.filter-bar input[type="search"], .filter-bar select {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px;
  color: var(--text); padding: 10px 12px; font-family: var(--mono); font-size: 13px;
}
.filter-bar input[type="search"] { flex: 1; min-width: 200px; }
.filter-bar input:focus, .filter-bar select:focus { outline: none; border-color: var(--accent-dim); }

.tag-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  font-family: var(--mono); font-size: 11px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); cursor: pointer; background: none;
}
.chip:hover { border-color: var(--accent-dim); color: var(--text); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #14100a; font-weight: 600; }

.table-scroll {
  max-height: 520px; overflow: auto; border: 1px solid var(--line);
  border-radius: 10px; background: var(--panel);
}
.catalog-table { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
.catalog-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-key { width: 78px; }
th.col-num { width: 66px; }
.cell-title { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-table thead th {
  position: sticky; top: 0; z-index: 2; background: var(--panel-2);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.catalog-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.catalog-table tbody tr { cursor: pointer; transition: background .1s ease; }
.catalog-table tbody tr:hover { background: var(--panel-2); }
.catalog-table tbody tr.playing { background: rgba(245,166,35,.07); }
.catalog-table tbody tr.playing td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.col-num { text-align: right; font-family: var(--mono); }
.col-play { width: 40px; }

.row-play {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: none; color: var(--accent); font-size: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
tr.playing .row-play { background: var(--accent); color: #14100a; border-color: var(--accent); }

.cell-title { font-weight: 600; font-size: 14px; }
.cell-id { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.cell-tags { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.cell-price { font-family: var(--mono); color: var(--accent); font-weight: 600; }
.result-count { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 12px; }
.no-results { text-align: center; color: var(--muted); padding: 36px 0; font-family: var(--mono); font-size: 13px; }

/* ---------- docked player bar ---------- */
.player-bar[hidden] { display: none; }
.player-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  display: flex; align-items: center; gap: 14px;
  background: rgba(20,20,23,.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--accent-dim);
  padding: 12px 20px;
  --lvl: 0;
  box-shadow: 0 -6px 28px rgba(245,166,35, calc(var(--lvl) * .28));
}
/* audio-reactive top edge — brightness follows the actual playing signal */
.player-bar::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: calc(var(--lvl) * .95); pointer-events: none;
}
.play-btn {
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: #14100a; font-size: 15px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.play-btn:hover { background: #ffc14d; }
.pb-meta { min-width: 170px; }
.pb-title { font-weight: 700; font-size: 14.5px; }
.pb-sub { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.pb-wave { flex: 1; height: 44px; cursor: pointer; }
.pb-wave canvas { width: 100%; height: 100%; display: block; }
.t-time { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.wm-badge { font-family: var(--mono); font-size: 10px; color: var(--accent-dim); white-space: nowrap; }
.pb-buy { display: flex; gap: 8px; }
.pb-close { background: none; border: none; color: var(--muted); font-size: 15px; cursor: pointer; padding: 6px; }
.pb-close:hover { color: var(--text); }

/* tiers */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.tier { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px 24px; }
.tier.featured { border-color: var(--accent); }
.flag {
  position: absolute; top: -12px; left: 24px; background: var(--accent); color: #14100a;
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 4px;
}
.tier h3 { font-size: 19px; font-weight: 700; }
.price { font-size: 34px; font-weight: 800; margin: 10px 0 16px; }
.price::after { content: ''; display: block; height: 2px; width: 40px; background: var(--accent); margin-top: 8px; }
.tier ul { list-style: none; }
.tier li { padding: 7px 0 7px 22px; position: relative; color: #d8d5cc; font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.tier li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }
.tier-note { margin-top: 16px; font-size: 13px; color: var(--muted); font-style: italic; }

.clause-box { margin-top: 32px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.clause-box h3 { margin-bottom: 16px; font-size: 18px; }
.clause-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.clause-cols ul { list-style: none; }
.clause-cols li { padding: 6px 0 6px 20px; position: relative; color: var(--muted); font-size: 14px; }
.clause-cols li::before { content: '·'; position: absolute; left: 4px; color: var(--accent); font-weight: 800; }

/* custom */
.custom-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.step { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step span { font-family: var(--mono); color: var(--accent); font-size: 14px; padding-top: 3px; }
.step h4 { font-size: 16px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14px; }
.custom-card { background: var(--panel); border: 1px solid var(--accent-dim); border-radius: 12px; padding: 28px 24px; }
.custom-card ul { list-style: none; margin-top: 4px; }
.custom-card li { padding: 7px 0 7px 22px; position: relative; font-size: 14.5px; color: #d8d5cc; border-bottom: 1px dashed var(--line); }
.custom-card li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }

/* faq */
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 15.5px; list-style: none; position: relative; }
.faq summary::after { content: '+'; position: absolute; right: 22px; color: var(--accent); font-family: var(--mono); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }

.disclosure-banner {
  padding: 22px 26px; border: 1px solid var(--accent-dim);
  border-radius: 10px; background: rgba(245,166,35,.06); font-size: 14px; color: #d8d5cc;
}
.disclosure-banner strong { color: var(--accent); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

/* hidden admin entry — the © glyph looks and behaves like plain text */
.admin-glyph { cursor: default; user-select: none; }

/* ---------- admin lock screen ---------- */
.lock-overlay {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.lock-box { width: 320px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 32px; text-align: center; }
.lock-box h2 { font-family: var(--mono); font-size: 15px; letter-spacing: .12em; color: var(--muted); margin-bottom: 20px; }
.lock-box input {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px;
  color: var(--text); padding: 12px; font-family: var(--mono); font-size: 14px; text-align: center;
}
.lock-box input:focus { outline: none; border-color: var(--accent-dim); }
.lock-box button { width: 100%; margin-top: 12px; }
.lock-err { color: #e74c3c; font-family: var(--mono); font-size: 11px; margin-top: 12px; min-height: 14px; }

@media (max-width: 860px) {
  .custom-grid, .clause-cols { grid-template-columns: 1fr; }
  nav a { margin-left: 14px; font-size: 13px; }
  .pb-buy { display: none; }
  .pb-wm { display: none; }
}

/* ---------- CTA band (index) ---------- */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--accent-dim); border-radius: 14px;
  padding: 40px 36px; margin-bottom: 72px;
}
.cta-band h2 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; letter-spacing: -0.01em; }
.cta-band .sub { margin-top: 8px; }

/* ---------- brief form ---------- */
.brief-form {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 32px; display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.brief-form label { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.brief-form input[type="text"], .brief-form input[type="email"], .brief-form select, .brief-form textarea {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px;
  color: var(--text); padding: 11px 12px; font-family: var(--sans); font-size: 14px;
}
.brief-form select[multiple] { min-height: 110px; }
.brief-form input:focus, .brief-form select:focus, .brief-form textarea:focus { outline: none; border-color: var(--accent-dim); }
.brief-form label.check { flex-direction: row; align-items: center; gap: 10px; font-family: var(--sans); font-size: 13.5px; color: #d8d5cc; }
.brief-form input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }
.brief-form button[type="submit"] { align-self: flex-start; }

/* ---------- legal page ---------- */
.legal h2 { font-size: 24px; margin: 36px 0 8px; color: var(--accent); }
.legal h3 { font-size: 16px; margin: 22px 0 6px; }
.legal p { color: var(--muted); font-size: 14.5px; margin-bottom: 8px; max-width: 760px; }
.legal strong { color: var(--text); }

@media (max-width: 860px) {
  .form-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* ---------- admin sales stat cards ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.stat-num { display: block; font-size: 26px; font-weight: 800; color: var(--accent); font-family: var(--mono); }
.stat-label { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- collapsible tags + pagination footer ---------- */
.tags-wrap { position: relative; margin-bottom: 16px; }
.tag-chips { margin-bottom: 0; }
.tag-chips.collapsed { max-height: 66px; overflow: hidden; }
.chip.more { margin-top: 10px; border-style: dashed; color: var(--accent); }
.table-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; min-height: 34px; }

/* ---------- track modal (shadowbox) ---------- */
body.no-scroll { overflow: hidden; }
.modal-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(6, 6, 8, 0.72); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative; width: min(680px, 100%); max-height: 88vh; overflow-y: auto;
  background: #141417; border: 1px solid #26262c; border-radius: 14px; padding: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.modal-close {
  position: absolute; top: 12px; right: 12px; background: none; border: 0;
  color: #9a978e; font-size: 16px; cursor: pointer; padding: 6px;
}
.modal-close:hover { color: #f2f0ea; }
.tm-head { display: flex; gap: 18px; margin-bottom: 18px; }
.tm-art {
  width: 132px; height: 132px; flex: 0 0 132px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: rgba(255, 255, 255, 0.85);
}
.tm-idblock h3 { margin: 0 0 2px; font-size: 22px; }
.tm-genre { margin: 0 0 12px; color: #9a978e; font-size: 13px; }
.tm-stats { display: flex; gap: 26px; margin-bottom: 12px; }
.tm-stats div { display: flex; flex-direction: column; }
.tm-stats span { font-family: var(--mono); font-weight: 600; font-size: 15px; }
.tm-stats label { color: #9a978e; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.tm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.sm { font-size: 11px; padding: 3px 10px; cursor: default; }
.tm-tiers { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.tier-wrap {
  background: #0f0f12; border: 1px solid #26262c; border-radius: 10px; color: #f2f0ea;
}
.tier-wrap:hover { border-color: #3d3d46; }
.tier-wrap.sel { border-color: var(--accent); background: #17140d; }
.tier-row {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 12px 14px; cursor: pointer; color: inherit; font-family: var(--sans);
}
.tr-expand { padding: 0 14px 12px; }
.tr-radio {
  width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%;
  border: 2px solid #4a4a55;
}
.tier-wrap.sel .tr-radio { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #17140d; }
.tr-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tr-main b { font-size: 14px; }
.tr-main small { color: #9a978e; font-size: 12px; }
.tr-price { font-family: var(--mono); font-weight: 600; color: var(--accent); }
.tm-note { color: #9a978e; font-size: 12px; margin: 4px 0 16px; }
.tm-actions { display: flex; gap: 10px; }
.tm-actions .btn { flex: 1; }

/* ---------- cart: nav button, drawer, toast ---------- */
.cart-fab {
  position: relative; background: none; border: 0; color: #f2f0ea;
  cursor: pointer; padding: 6px 4px 6px 14px; vertical-align: middle;
}
.cart-fab:hover { color: var(--accent); }
.cart-badge {
  position: absolute; top: -2px; right: -6px; min-width: 16px; height: 16px;
  background: var(--accent); color: #14100a; border-radius: 8px;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; padding: 0 4px;
  font-family: var(--mono);
}
.drawer-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(6, 6, 8, 0.6); }
.drawer-scrim[hidden] { display: none; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95;
  width: min(400px, 92vw); background: #141417; border-left: 1px solid #26262c;
  padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto;
  box-shadow: -18px 0 60px rgba(0, 0, 0, 0.5);
}
.cart-drawer[hidden] { display: none; }
.cd-head { display: flex; justify-content: space-between; align-items: center; }
.cd-head h3 { margin: 0; font-size: 18px; }
.cd-n { color: #9a978e; font-weight: 400; }
.cd-close { background: none; border: 0; color: #9a978e; font-size: 16px; cursor: pointer; }
.cd-close:hover { color: #f2f0ea; }
.cd-empty { color: #9a978e; font-size: 13px; line-height: 1.5; }
.cd-empty a { color: var(--accent); }
.cd-items { display: flex; flex-direction: column; gap: 10px; }
.cd-item {
  display: flex; align-items: center; gap: 12px;
  background: #0f0f12; border: 1px solid #26262c; border-radius: 10px; padding: 10px 12px;
}
.cd-art {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.85);
}
.cd-meta { flex: 1; min-width: 0; }
.cd-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-tier { color: #9a978e; font-size: 12px; }
.cd-rm { background: none; border: 0; color: #9a978e; cursor: pointer; font-size: 13px; padding: 4px; }
.cd-rm:hover { color: #e5484d; }
.cd-totals { border-top: 1px solid #26262c; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.cd-line { display: flex; justify-content: space-between; font-size: 13px; color: #9a978e; }
.cd-line.disc span:last-child { color: #4caf7d; }
.cd-line.total { color: #f2f0ea; font-weight: 700; font-size: 15px; }
.cd-hint { margin: 2px 0 0; font-size: 11px; color: var(--accent); }
.btn.wide { width: 100%; text-align: center; }
.cd-fine { color: #6d6a62; font-size: 11px; line-height: 1.5; margin: 0; }
.toast {
  position: fixed; bottom: 88px; left: 50%; transform: translateX(-50%); z-index: 100;
  display: flex; align-items: center; gap: 12px;
  background: #1c1c21; border: 1px solid #33333c; border-radius: 10px;
  padding: 10px 14px; font-size: 13px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}
.toast[hidden] { display: none; }

/* ---------- slim catalog table ---------- */
.linklike {
  background: none; border: 0; padding: 0; color: #f2f0ea; font: inherit; font-weight: 600;
  cursor: pointer; text-align: left;
}
.linklike:hover { color: var(--accent); text-decoration: underline; }
.row-cart {
  background: none; border: 1px solid #33333c; border-radius: 8px; color: #f2f0ea;
  cursor: pointer; padding: 6px 8px; line-height: 0;
}
.row-cart:hover { border-color: var(--accent); color: var(--accent); }
.col-cart { width: 52px; text-align: right; }

@media (max-width: 560px) {
  .tm-head { flex-direction: column; }
  .tm-art { width: 100%; height: 110px; flex-basis: 110px; }
  .tm-actions { flex-direction: column; }
}

.free-tag { color: #4caf7d; }

/* ---------- mobile: catalog table + filters fit small screens ---------- */
@media (max-width: 640px) {
  .hero { padding: 64px 18px 48px; }
  .filter-bar input[type="search"] { flex-basis: 100%; min-width: 0; }
  .filter-bar select { flex: 1 1 30%; }
  .catalog-table { font-size: 12.5px; }
  .catalog-table td { padding: 9px 8px; }
  .catalog-table thead th { padding: 10px 8px; }
  .col-play { width: 34px; }
  .col-key { width: 58px; }
  th.col-num { width: 48px; }
  .col-cart { width: 44px; }
  .row-play { width: 26px; height: 26px; }
  .tm-note { font-size: 11px; }

  /* docked player: everything must yield before the waveform does —
     fixed siblings used to eat the whole bar and squeeze the canvas to 0px */
  .player-bar { gap: 8px; padding: 10px 12px; }
  .pb-meta { min-width: 0; flex: 0 1 auto; overflow: hidden; }
  .pb-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pb-sub { white-space: nowrap; }
  #pb-time { display: none; } /* playhead on the waveform carries position; keep the bar lean */
  .pb-wave { flex: 1 1 100px; min-width: 100px; }
  .play-btn { width: 36px; height: 36px; }
  .pb-nav { width: 28px; height: 28px; flex-basis: 28px; }
}

/* ---------- modal: license groups + expandable terms ---------- */
.tm-group-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin: 12px 0 2px;
}
.tm-group-label:first-child { margin-top: 0; }
.tr-top { display: flex; align-items: center; gap: 12px; }
.tr-terms {
  margin: 10px 0 2px 28px; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 5px;
}
.tr-terms li { color: #c9c6bd; font-size: 12.5px; line-height: 1.45; padding-left: 14px; position: relative; }
.tr-terms li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.tr-more { display: inline-block; margin: 8px 0 0 28px; font-size: 12px; color: var(--accent); }

.lic-group { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }

.catalog-table td:last-child, .catalog-table th:last-child { padding-right: 12px; }
@media (max-width: 640px) {
  .col-cart { width: 48px; }
  .catalog-table td:last-child, .catalog-table th:last-child { padding-right: 10px; }
}

.tier-grid { margin-top: 28px; }

/* ---------- row waveform strips (peaks baked at build time) ---------- */
.cell-title-wrap { position: relative; }
.row-wave {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 92%);
  mask-image: linear-gradient(90deg, #000 45%, transparent 92%);
}
.cell-title-wrap .cell-title { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .catalog-table tbody tr:hover .row-wave { opacity: .13; }
}
.catalog-table tbody tr.playing .row-wave { opacity: .08; }
@media (prefers-reduced-motion: reduce) { .row-wave { transition: none; } }

/* ---------- player: nav buttons + scrubbing surface ---------- */
.pb-nav {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%;
  background: none; border: 1px solid var(--line); color: #d8d5cc; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pb-nav:hover { color: var(--accent); border-color: var(--accent-dim); }
.pb-wave canvas { cursor: pointer; touch-action: none; }
.modal { will-change: transform; }