/* BRE PROD. — orange / black / white. Orange sampled from the supplied logo (#FF6B00). */
:root {
  --orange: #FF6B00;
  --orange-press: #E05E00;
  --black: #000000;
  --white: #FFFFFF;
  --panel: #161616;
  --panel-2: #1F1F1F;
  --rule: #2B2B2B;
  --muted: #A6A6A6;
  --danger: #FF5A4E;
  --ok: #FFFFFF;
  --radius: 6px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --player-h: 0px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--white); font-family: var(--font);
  font-size: 16px; line-height: 1.55; font-variation-settings: "wdth" 100;
  padding-bottom: var(--player-h);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.on-orange :focus-visible { outline-color: var(--black); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }

/* ---------- type scale (1.25 ratio) ---------- */
h1, h2, h3, .display {
  font-variation-settings: "wdth" 125; font-weight: 900; line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 .5em;
}
h1 { font-size: clamp(36px, 6.2vw, 76px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: 20px; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 68ch; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--black); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }          /* transparent wordmark, aspect preserved */
.nav { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--radius); font-weight: 600; font-size: 15px; }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.nav .cart-link { background: var(--orange); color: var(--black); border-radius: 999px; padding: 8px 16px; }
.nav .cart-link:hover { background: var(--white); color: var(--black); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); color: var(--white);
  border-radius: var(--radius); padding: 8px 12px; font: inherit; font-weight: 700; }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--black); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
  .nav .cart-link { text-align: center; margin-top: 8px; }
}

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700;
  font-size: 15px; line-height: 1; padding: 13px 20px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background .12s, color .12s, border-color .12s; }
.btn-primary { background: var(--orange); color: var(--black); }
.btn-primary:hover { background: var(--white); color: var(--black); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--panel-2); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--orange); color: var(--white); }
.btn-danger { background: transparent; color: var(--danger); border-color: #5a2522; }
.btn-danger:hover { background: var(--danger); color: var(--black); }
.btn-sm { padding: 8px 13px; font-size: 13.5px; }
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-block { width: 100%; }
label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=url],
select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--white); background: var(--panel); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 11px 12px;
}
input:focus, select:focus, textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(255,107,0,.25); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; accent-color: var(--orange); width: 18px; height: 18px; flex: none; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1 1 160px; }
.inline-form { display: inline; }

/* ---------- flash ---------- */
.flashes { margin: 16px 0; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--radius); border-left: 4px solid var(--white); background: var(--panel); }
.flash-success { border-color: var(--orange); }
.flash-error { border-color: var(--danger); }
.flash-info { border-color: var(--muted); overflow-wrap: anywhere; }

/* ---------- hero (the one loud moment) ---------- */
.hero { background: var(--orange); color: var(--black); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding-top: clamp(28px, 6vw, 72px); padding-bottom: clamp(36px, 6vw, 80px); }
.hero-logo { width: min(100%, 600px); aspect-ratio: 1 / 1; object-fit: cover; margin: -6% 0 -6% -6%; }
.hero h1 { color: var(--black); margin-bottom: 18px; }
.hero p { font-size: 18px; font-weight: 500; }
.hero .btn-dark { padding: 16px 26px; font-size: 16px; }
.hero-feature { margin-top: 26px; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px;
  background: rgba(0,0,0,.08); border-radius: 999px; width: fit-content; max-width: 100%; }
.hero-feature .play { background: var(--black); color: var(--orange); }
.hero-feature strong { display: block; font-size: 15px; }
.hero-feature span { font-size: 13.5px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-logo { width: 100%; max-width: 420px; margin: -10% auto -8%; order: -1; }
}

/* ---------- sections ---------- */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* ---------- featured tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile { position: relative; }
.tile .cover { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; }
.tile .cover .play { position: absolute; right: 14px; top: 14px; background: var(--black); color: var(--orange); }
.tile .cover .play:hover { background: var(--white); color: var(--black); }
.tile h3 { margin: 14px 0 4px; font-size: 21px; }
.tile h3 a { text-decoration: none; }
.tile .meta { color: var(--muted); font-size: 14px; }
.tile .price { color: var(--orange); font-weight: 700; }
.cover-art { width: 100%; height: 100%; object-fit: cover; }
.cover-fallback { width: 100%; height: 100%; background: var(--orange); color: var(--black); display: flex; align-items: flex-end;
  padding: 8%; font-variation-settings: "wdth" 125; font-weight: 900; font-size: clamp(22px, 3.2vw, 36px); line-height: .95;
  overflow-wrap: anywhere; }
.cover-fallback.small { font-size: 26px; padding: 0; align-items: center; justify-content: center; }

/* ---------- tracklist ---------- */
.tracklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.track { display: grid; grid-template-columns: 48px 52px minmax(0, 1fr) 64px 92px 120px 100px auto; gap: 14px; align-items: center;
  padding: 12px 6px; border-bottom: 1px solid var(--rule); }
.track:hover { background: var(--panel); }
.track.playing { background: var(--panel); box-shadow: inset 3px 0 0 var(--orange); }
.track .thumb { width: 52px; height: 52px; border-radius: 4px; overflow: hidden; }
.track .title { font-weight: 700; font-size: 16.5px; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track .tags { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track .c { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.track .price { font-weight: 800; color: var(--orange); font-variant-numeric: tabular-nums; }
.track-head { font-size: 13px; color: var(--muted); border-bottom: 0; padding-top: 0; padding-bottom: 6px; }
.track-head:hover { background: none; }
@media (max-width: 860px) {
  .track { grid-template-columns: 44px minmax(0, 1fr) auto; row-gap: 2px; }
  .track .thumb, .track .c.genre, .track-head { display: none; }
  .track .c.bpm, .track .c.key { display: none; }
  .track .price { grid-column: 3; grid-row: 1; }
  .track .actions { grid-column: 2 / 4; }
}
.play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--orange); color: var(--black); cursor: pointer;
  display: inline-grid; place-items: center; flex: none; }
.play:hover { background: var(--white); }
.play svg { width: 18px; height: 18px; }
.play .i-pause { display: none; }
.play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: block; }
.play[disabled] { background: var(--panel-2); color: var(--muted); cursor: not-allowed; }

/* ---------- catalog filters ---------- */
.catalog { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
.filters { position: sticky; top: 88px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.filters legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.filters .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters-toggle { display: none; }
@media (max-width: 860px) {
  .catalog { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; display: none; background: var(--panel); padding: 16px; border-radius: var(--radius); }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
}
.searchbar { display: flex; gap: 10px; margin-bottom: 18px; }
.searchbar input { flex: 1; }
.pager { display: flex; gap: 8px; margin-top: 22px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; font-size: 13px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--rule); color: var(--muted); }

/* ---------- beat page ---------- */
.beat-hero { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; padding: 40px 0; }
@media (max-width: 860px) { .beat-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; } }
.beat-hero .cover { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0; border: 1px solid var(--rule);
  border-radius: var(--radius); margin: 20px 0; }
.facts div { padding: 12px 14px; border-right: 1px solid var(--rule); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: 12.5px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.licenses { display: grid; gap: 12px; }
.license { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 18px; border: 1px solid var(--rule);
  border-radius: var(--radius); background: var(--panel); align-items: center; }
.license h3 { margin: 0; font-size: 18px; }
.license .lp { font-size: 26px; font-weight: 900; font-variation-settings: "wdth" 125; color: var(--orange); font-variant-numeric: tabular-nums; }
.license.unavailable { opacity: .6; }
.license.unavailable .lp { color: var(--muted); font-size: 16px; font-variation-settings: "wdth" 100; }
.license-buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) {
  .license { grid-template-columns: 1fr; }
  .license-buy { justify-content: space-between; }
}
.license details { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.license details summary { cursor: pointer; color: var(--white); }
.license .terms { white-space: pre-wrap; margin-top: 8px; }
.notice { border: 1px dashed var(--rule); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; color: var(--muted); }

/* ---------- player bar ---------- */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--black); border-top: 2px solid var(--orange);
  transform: translateY(110%); transition: transform .2s ease; }
.player.active { transform: none; }
.player .wrap { display: grid; grid-template-columns: auto minmax(0, 220px) minmax(0, 1fr) auto; gap: 16px; align-items: center; height: 76px; }
.player .now { min-width: 0; }
.player .now strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .now span { font-size: 12.5px; color: var(--muted); }
.player .seek { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.player input[type=range] { width: 100%; accent-color: var(--orange); }
.player .vol { display: flex; align-items: center; gap: 8px; width: 140px; }
.player .close { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 22px; padding: 4px 8px; }
@media (max-width: 700px) {
  .player .wrap { grid-template-columns: auto minmax(0, 1fr) auto; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 6px; }
  .player .seek { grid-column: 1 / -1; grid-row: 2; }
  .player .vol { display: none; }
}
@media (prefers-reduced-motion: reduce) { .player { transition: none; } }

/* ---------- generic panels / tables ---------- */
.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
tr:hover td { background: rgba(255,255,255,.02); }
.totals td { font-weight: 800; border-bottom: 0; }

.badge { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  background: var(--panel-2); color: var(--white); border: 1px solid var(--rule); white-space: nowrap; }
.badge-orange, .badge-paid, .badge-published, .badge-exact, .badge-approved { background: var(--orange); color: var(--black); border-color: var(--orange); }
.badge-pending, .badge-draft, .badge-probable, .badge-manual { background: transparent; color: var(--white); border-color: var(--white); }
.badge-failed, .badge-conflicting, .badge-disputed, .badge-needs_review, .badge-blocked { background: transparent; color: var(--danger); border-color: var(--danger); }
.badge-ambiguous, .badge-duplicate { background: transparent; color: var(--orange); border-color: var(--orange); }
.badge-refunded, .badge-partially_refunded, .badge-expired, .badge-canceled, .badge-archived, .badge-unmatched { color: var(--muted); }

.empty { text-align: left; padding: 36px 24px; border: 1px dashed var(--rule); border-radius: var(--radius); }
.empty h3 { margin-bottom: 6px; }

/* ---------- cart / checkout / order ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; padding: 32px 0 56px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }
.summary-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.summary-line:last-child { border-bottom: 0; }
.summary-total { font-size: 22px; font-weight: 900; font-variation-settings: "wdth" 125; }
.pay-option { border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; background: var(--panel); }
.pay-option h3 { margin-bottom: 10px; font-size: 18px; }
#paypal-buttons { min-height: 50px; background: var(--white); border-radius: var(--radius); padding: 10px; }
.status-banner { padding: 18px 20px; border-radius: var(--radius); margin: 18px 0; background: var(--panel); border-left: 6px solid var(--white); }
.status-banner.paid { background: var(--orange); color: var(--black); border-left-color: var(--black); }
.status-banner.problem { border-left-color: var(--danger); }
.downloads { list-style: none; padding: 0; margin: 0; }
.downloads li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }

/* ---------- auth ---------- */
.auth { max-width: 440px; margin: 48px auto 72px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 44px 0 36px; margin-top: 24px; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer img { width: 190px; height: auto; border-radius: 4px; }
.site-footer h4 { font-size: 14px; margin: 0 0 10px; color: var(--muted); font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.legal { color: var(--muted); font-size: 13px; margin-top: 28px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- licensing overview strip ---------- */
.license-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border: 1px solid var(--rule); border-radius: var(--radius); }
.license-strip > div { padding: 22px; border-right: 1px solid var(--rule); }
.license-strip > div:last-child { border-right: 0; }
@media (max-width: 760px) { .license-strip > div { border-right: 0; border-bottom: 1px solid var(--rule); } }
.license-strip .lp { font-size: 34px; font-weight: 900; font-variation-settings: "wdth" 125; color: var(--orange); }
.license-strip .lp.na { color: var(--muted); font-size: 18px; }

/* ===================================================== ADMIN ===================================================== */
.admin { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--black); border-right: 1px solid var(--rule); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { padding: 4px 8px 18px; }
.admin-side .brand img { height: 34px; }
.admin-side nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600; font-size: 14.5px; color: #dcdcdc; }
.admin-side nav a:hover { background: var(--panel); color: var(--white); }
.admin-side nav a[aria-current="page"] { background: var(--orange); color: var(--black); }
.admin-side nav .grp { color: var(--muted); font-size: 12.5px; padding: 16px 10px 6px; }
.admin-side .count { font-size: 12px; background: var(--panel-2); color: var(--white); padding: 1px 8px; border-radius: 999px; }
.admin-side nav a[aria-current="page"] .count { background: var(--black); }
.admin-main { padding: 24px clamp(16px, 3vw, 36px) 80px; min-width: 0; background: #0a0a0a; }
.admin-main h1 { font-size: clamp(28px, 3.4vw, 40px); }
.admin-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-top h1 { margin: 0; }
.admin-top .sub { color: var(--muted); margin: 6px 0 0; }
.admin-menu-toggle { display: none; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; display: none; }
  .admin-side.open { display: block; }
  .admin-menu-toggle { display: inline-flex; margin: 12px 16px 0; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; display: block; }
.stat b { display: block; font-size: 28px; font-weight: 900; font-variation-settings: "wdth" 125; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13.5px; }
.stat.alert b { color: var(--orange); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.checklist .ok { color: var(--orange); font-weight: 900; }
.checklist .no { color: var(--muted); font-weight: 900; }

/* drop zone */
.dropzone { border: 2px dashed #4a4a4a; border-radius: 10px; padding: clamp(28px, 5vw, 56px) 24px; text-align: center;
  background: var(--panel); transition: border-color .12s, background .12s; }
.dropzone.over { border-color: var(--orange); background: #1d1309; }
.dropzone h2 { margin-bottom: 8px; }
.dropzone .row { justify-content: center; margin-top: 16px; }
.dropzone .row > * { flex: 0 0 auto; }
.uploads { margin-top: 18px; }
.upl { display: grid; grid-template-columns: minmax(0, 1fr) 160px 110px auto; gap: 12px; align-items: center; padding: 8px 0;
  border-bottom: 1px solid var(--rule); font-size: 14px; }
.upl .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upl .err { grid-column: 1 / -1; color: var(--danger); font-size: 13px; margin-top: -4px; }
.upl .note { grid-column: 1 / -1; color: var(--orange); font-size: 13px; margin-top: -4px; }
progress { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--panel-2); }
progress::-webkit-progress-value { background: var(--orange); }
progress::-moz-progress-bar { background: var(--orange); }
.overall { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 16px; }
@media (max-width: 640px) { .upl { grid-template-columns: minmax(0, 1fr) auto; } .upl progress { grid-column: 1 / -1; grid-row: 2; } }

/* import review */
.group { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--panel); margin-bottom: 14px; }
.group.is-approved { border-color: var(--orange); }
.group.is-blocked { border-color: #5a2522; }
.group.is-created, .group.is-removed { opacity: .7; }
.group-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.group-head h3 { margin: 0; font-size: 19px; }
.group-body { padding: 14px 16px; display: grid; gap: 14px; }
.group-fields { display: grid; grid-template-columns: 2fr 0.8fr 1fr 1fr 1fr 0.9fr 0.9fr; gap: 10px; align-items: end; }
.group-fields .field { margin: 0; }
@media (max-width: 1100px) { .group-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .group-fields .wide { grid-column: 1 / -1; } }
.issues { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; }
.issues .b { color: var(--danger); }
.issues .w { color: #ffd4b3; }
.issues .b::before { content: "Blocking: "; font-weight: 700; }
.files-table td { vertical-align: middle; }
.files-table select { padding: 6px 8px; font-size: 13.5px; width: auto; }
.src { font-size: 12px; color: var(--muted); }
.sticky-actions { position: sticky; top: 0; z-index: 5; background: #0a0a0a; padding: 12px 0; border-bottom: 1px solid var(--rule); margin-bottom: 16px;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input[type=search] { max-width: 280px; }
.toolbar select { width: auto; }
.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 16px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
details.more > summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.danger-zone { border-color: #5a2522; }
code { font-size: 13px; background: var(--panel-2); padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.admin-top .row > *, .section-head .row > * { flex: 0 0 auto; }
.grid-2 > .panel + .panel, .grid-3 > .panel + .panel { margin-top: 0; }
.grid-2 + .panel, .panel + .grid-2 { margin-top: 16px; }
@media (max-width: 700px) {
  .admin-top > .row { flex: 1 1 100% !important; justify-content: flex-start; }
  .btn { white-space: normal; }
}

/* ===================== Browse page: wide layout, top filter bar, beat cards ===================== */
.wrap-wide { max-width: 1520px; }
.catalog-page { padding-top: clamp(24px, 4vw, 44px); padding-bottom: 72px; }
.catalog-title { font-size: clamp(36px, 5vw, 60px); margin-bottom: 20px; }
.browse-bar { position: sticky; top: 68px; z-index: 20; background: var(--black); padding: 14px 0 16px;
  border-bottom: 1px solid var(--rule); margin-bottom: 26px; display: grid; gap: 12px; }
.browse-search { position: relative; }
.browse-search svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.browse-search input { padding: 16px 18px 16px 50px; font-size: 18px; border-radius: 999px; background: var(--panel); border-color: var(--rule); }
.browse-search input:focus { border-color: var(--orange); }
.browse-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.browse-filters select, .browse-filters input { width: auto; min-width: 0; padding: 9px 12px; font-size: 14px; border-radius: 999px; }
.browse-filters select { padding-right: 30px; }
.browse-pair { display: flex; gap: 4px; }
.browse-pair input { width: 108px; }
.browse-pair input[name^=price] { width: 86px; }
.browse-check { margin: 0 4px; font-size: 14px; }
.browse-check input { margin-top: 0; }
.browse-clear { font-size: 14px; color: var(--muted); margin-left: 4px; }
.browse-bar .filters-toggle { justify-self: start; }
@media (min-width: 861px) { .browse-bar .filters-toggle { display: none; } }
@media (max-width: 860px) {
  .browse-filters { display: none; }
  .browse-filters.open { display: flex; }
  .browse-filters select, .browse-pair { flex: 1 1 calc(50% - 8px); }
  .browse-pair input { width: 50%; }
}
.results-count { margin: 0 0 14px; }
#results { transition: opacity .15s; }
#results.is-loading { opacity: .55; }

.beat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px 22px; }
@media (max-width: 560px) { .beat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } }
.beat-card { position: relative; border-radius: 12px; background: var(--panel); border: 1px solid var(--rule);
  overflow: visible; transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease; }
.beat-card:hover, .beat-card:focus-within { border-color: rgba(255, 107, 0, .5); transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(255, 107, 0, .25), 0 18px 48px -12px rgba(255, 107, 0, .45), 0 0 70px -20px rgba(255, 107, 0, .5); }
.beat-card.playing { border-color: var(--orange); }
.beat-card-link { position: absolute; inset: 0; z-index: 1; border-radius: 12px; }
.beat-card-cover { position: relative; aspect-ratio: 1; border-radius: 11px 11px 0 0; overflow: hidden; }
.beat-card-cover .play { position: absolute; z-index: 2; right: 12px; top: 12px; width: 50px; height: 50px;
  background: var(--black); color: var(--orange); box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.beat-card-cover .play:hover { background: var(--orange); color: var(--black); }
.beat-card-cover .play[disabled] { display: none; }
.beat-card-body { padding: 14px 16px 16px; }
.beat-card-title { font-size: 19px; margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beat-card-meta { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beat-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; }
.beat-card-price { font-weight: 800; color: var(--orange); font-variant-numeric: tabular-nums; }
.beat-card-mood { font-size: 12.5px; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 2px 9px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50%; }
.beat-card .cover-fallback { font-size: clamp(20px, 2.2vw, 30px); }
@media (max-width: 560px) {
  .beat-card-body { padding: 10px 11px 12px; }
  .beat-card-title { font-size: 16px; }
  .beat-card-meta { font-size: 12.5px; }
  .beat-card-mood { display: none; }
  .beat-card-cover .play { width: 42px; height: 42px; right: 8px; top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .beat-card, #results { transition: none; } .beat-card:hover { transform: none; } }

/* header and footer line up with the wide browse layout */
.site-header .wrap, .site-footer .wrap { max-width: 1520px; }
@media (min-width: 861px) {
  .browse-filters { gap: 6px; }
  .browse-filters select { max-width: 152px; text-overflow: ellipsis; }
}


/* ===================== Header search ===================== */
.site-header .wrap { gap: 20px; }
.header-search { position: relative; flex: 1 1 320px; max-width: 460px; min-width: 0; }
.header-search svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.header-search input { width: 100%; padding: 10px 14px 10px 40px; border-radius: 999px; background: var(--panel); border: 1px solid var(--rule); font-size: 15px; }
.header-search input:focus { border-color: var(--orange); }
.header-search input::-webkit-search-cancel-button { filter: invert(1); }
.header-search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 340px; background: var(--panel);
  border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 18px 48px rgba(0,0,0,.6); overflow: hidden; z-index: 60; }
.hs-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 12px; text-decoration: none; }
.hs-item.is-active, .hs-item:hover { background: var(--panel-2); color: var(--white); }
.hs-thumb { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; background: var(--orange); color: var(--black);
  display: grid; place-items: center; font-weight: 900; font-size: 20px; }
.hs-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hs-body { min-width: 0; display: grid; }
.hs-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-meta { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-price { font-size: 13.5px; font-weight: 800; color: var(--orange); white-space: nowrap; }
.hs-empty { padding: 14px; color: var(--muted); }
.hs-all { display: block; padding: 11px 14px; border-top: 1px solid var(--rule); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--orange); }
.hs-all:hover { background: var(--panel-2); }
@media (max-width: 1080px) {
  .header-search { max-width: none; }
}
@media (max-width: 560px) {
  .site-header .wrap { gap: 10px; }
  .brand img { height: 32px; }
  .header-search input { padding: 9px 10px 9px 34px; font-size: 16px; }   /* 16px stops iPhone zoom-on-focus */
  .header-search svg { left: 11px; }
  .header-search-results { position: fixed; top: 68px; left: 0; right: 0; min-width: 0; border-radius: 0 0 12px 12px; }
  .nav-toggle { padding: 8px 10px; }
}

/* ===================== Prices: sales and free ===================== */
.price-was { color: var(--muted); font-weight: 500; font-size: .85em; margin-left: 4px; }
.price-free { color: var(--orange); font-weight: 900; }
.sale-pill { position: absolute; z-index: 2; left: 12px; top: 12px; background: var(--black); color: var(--orange); font-size: 12.5px;
  font-weight: 800; padding: 4px 10px; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.sale-note { grid-column: 1 / -1; font-size: 13.5px; color: var(--orange); font-weight: 600; }
.license .lp .price-was { font-size: 16px; }

/* ===================== Homepage background slideshow ===================== */
.hero { position: relative; overflow: hidden; }
.hero-has-media { background: var(--black); color: var(--white); min-height: min(78vh, 720px); display: flex; align-items: center; }
.hero-has-media .wrap { position: relative; z-index: 2; width: 100%; }
.hero-has-media h1, .hero-has-media p { color: var(--white); text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity var(--fade, 1.5s) ease-in-out; }
.hero-slide.is-active { opacity: 1; }
.hero-shade { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,calc(var(--shade) + .2)) 0%, rgba(0,0,0,var(--shade)) 55%, rgba(0,0,0,calc(var(--shade) * .6)) 100%); }
.hero-wordmark { width: min(100%, 420px); height: auto; justify-self: center; filter: drop-shadow(0 4px 30px rgba(0,0,0,.5)); }
.hero-has-media .hero-feature { background: rgba(0,0,0,.45); backdrop-filter: blur(6px); }
.hero-has-media .hero-feature .play { background: var(--orange); color: var(--black); }
@media (max-width: 860px) {
  .hero-has-media { min-height: 0; }
  .hero-wordmark { width: 70%; max-width: 300px; order: -1; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* ===================== Admin: discounts, homepage slides, price modes ===================== */
.beat-pick { border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px; background: #0f0f0f; }
.beat-pick input[type=search] { margin-bottom: 8px; }
.beat-pick-list { max-height: 240px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 14px; }
.beat-pick-list .check { font-size: 14px; }
.price-mode { display: flex; gap: 8px; align-items: center; }
.price-mode select { width: auto; flex: 0 0 auto; }
.price-mode input { width: 110px; flex: 0 0 110px; }
.slide-list { display: grid; gap: 12px; }
.slide-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px; border: 1px solid var(--rule); border-radius: var(--radius); }
.slide-row.is-off { opacity: .55; }
.slide-thumb { aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.slide-thumb img, .slide-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slide-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .slide-row { grid-template-columns: 1fr; } .slide-actions { justify-content: flex-start; } }
input[type=range] { accent-color: var(--orange); width: 100%; }
input[type=datetime-local] { width: 100%; font: inherit; font-size: 15px; color: var(--white); background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px 12px; color-scheme: dark; }
.discount-form { margin-bottom: 20px; }
.discount-form .row { align-items: flex-start; }

/* ===================== Exclusive offers ===================== */
.offer-details { margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 10px; }
.offer-details > summary { color: var(--orange); font-weight: 600; }
.offer-form { margin-top: 12px; }
.offer-form .row { align-items: flex-start; }
.panel.is-handled { opacity: .62; }
.copy-row { display: flex; gap: 6px; margin-bottom: 4px; }
.copy-row input { font-size: 13px; padding: 7px 9px; }
tr.is-highlight td { background: rgba(255, 107, 0, .1); }
.offer-note { border-left: 4px solid var(--orange); }

/* ---- buyer conversations (Contact → Your messages → conversation page) ---- */
.nav-badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: var(--black);
  font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; vertical-align: 1px; }
.threads { padding: 10px 0; }
.threads-h { font-size: 20px; margin: 0 0 10px; }
.threads .threads-h { padding: 6px 18px 0; }
.thread-list { list-style: none; margin: 0; padding: 0; }
.thread { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 18px; text-decoration: none; border-top: 1px solid var(--rule); }
.thread:hover { background: var(--panel-2); color: var(--white); }
.thread.has-unread .thread-subject { font-weight: 800; }
.thread-subject { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-meta { flex: 0 0 auto; display: flex; gap: 8px; align-items: center; }
.convo-wrap { padding: 36px var(--gutter) 64px; max-width: 760px; }
.convo-title { font-size: clamp(30px, 4.4vw, 48px); margin: 0 0 6px; overflow-wrap: anywhere; }
.convo-private { margin: 0 0 22px; }
.convo { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.bubble { max-width: min(560px, 92%); }
.bubble.from-buyer { align-self: flex-end; }
.bubble.from-owner { align-self: flex-start; }
.bubble-meta { font-size: 12px; color: var(--muted); margin: 0 4px 4px; }
.from-buyer .bubble-meta { text-align: right; }
.bubble-body { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px 16px; border-radius: 14px; }
.from-buyer .bubble-body { background: var(--panel-2); border-bottom-right-radius: 4px; }
.from-owner .bubble-body { background: var(--panel); border: 1px solid var(--rule); border-bottom-left-radius: 4px; }
.bubble-body + .offer-card { margin-top: 8px; }
.offer-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px 14px; align-items: center; padding: 12px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--orange); border-radius: 12px; transition: box-shadow .2s, transform .2s; }
.offer-card:hover { color: var(--white); box-shadow: 0 0 0 1px var(--orange), 0 10px 34px -8px rgba(255, 107, 0, .45); transform: translateY(-1px); }
.offer-card.is-closed { border-color: var(--rule); opacity: .75; }
.offer-card.is-closed:hover { box-shadow: none; transform: none; }
.offer-card-cover { width: 76px; aspect-ratio: 1; border-radius: 8px; overflow: hidden; position: relative; background: var(--panel-2); }
.offer-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.offer-card-cover .cover-fallback { position: absolute; inset: 0; }
.offer-card-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.offer-card-kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.offer-card-title { font-size: 18px; overflow-wrap: anywhere; }
.offer-card-price { font-size: 22px; font-weight: 800; margin-top: 2px; }
.offer-card-status { font-size: 13px; color: var(--muted); margin-top: 2px; }
.offer-card-cta { grid-column: 1 / -1; justify-content: center; }
.convo-waiting { margin: -4px 0 18px; }
.convo-reply { display: flex; flex-direction: column; gap: 10px; }
.convo-reply label { font-weight: 700; }
.convo-reply .btn { align-self: flex-end; }
.my-offer { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 18px 20px; margin: 0 0 14px;
  background: var(--orange); color: var(--black); border-radius: var(--radius); }
.my-offer-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.my-offer-price { font-size: 34px; font-weight: 900; line-height: 1.1; }
.my-offer-note { margin-top: 6px; font-style: italic; overflow-wrap: anywhere; }
.my-offer :focus-visible { outline-color: var(--black); }
.license.is-mine { border-color: var(--orange); }
/* owner side of the conversation in Admin → Messages */
.admin-convo { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.admin-convo .bubble { max-width: 88%; }
.admin-convo .from-owner { align-self: flex-end; }
.admin-convo .from-buyer { align-self: flex-start; }
.admin-convo .from-owner .bubble-body { background: rgba(255, 107, 0, .14); border: 1px solid rgba(255, 107, 0, .45); }
.admin-convo .from-buyer .bubble-body { background: var(--panel-2); }
.admin-offer-chip { display: inline-block; margin-top: 6px; padding: 6px 10px; border: 1px solid var(--orange); border-radius: 8px; font-size: 13px; }
.admin-reply { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; }
.admin-reply textarea { flex: 1 1 auto; min-height: 44px; }
.admin-reply .btn { flex: 0 0 auto; }
.convo-link-row { margin-top: 10px; }
#licenses { scroll-margin-top: 96px; }
.nav-toggle .nav-badge { margin-left: 4px; }
.nav-toggle { white-space: nowrap; align-items: center; }
.thread-subject { white-space: normal; overflow-wrap: anywhere; }
/* ---- buyer alert preferences (email / text) ---- */
.notify-fields { border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px 4px; margin: 4px 0 18px; display: grid; gap: 10px; min-width: 0; }
.notify-fields legend { font-weight: 700; padding: 0 6px; margin-left: -6px; }
.notify-fields .check span.muted { font-size: 13px; }
.notify-fields .field { margin-bottom: 10px; }
.convo-alerts { margin-top: 14px; }
.convo-alerts summary { cursor: pointer; }
.alert-status { font-size: 12px; color: var(--muted); margin: 4px 4px 0; text-align: right; }
.alert-status .bad { color: var(--danger); }
.notify-fields { padding-top: 14px; }
.notify-fields legend { float: left; width: 100%; padding: 0; margin: 0 0 4px; }
.notify-fields legend + * { clear: both; }
/* on-page confirmation dialog (replaces the browser's confirm pop-up) */
.confirm-dialog { border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); color: var(--white); padding: 22px 22px 18px;
  width: min(440px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.confirm-dialog::backdrop { background: rgba(0,0,0,.65); }
.confirm-msg { margin: 0 0 18px; font-size: 16px; line-height: 1.5; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
/* live chat */
.convo-reply-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.convo-reply-row .btn { align-self: auto; }
.bubble.is-new { animation: bubble-in .35s ease-out; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bubble.is-new { animation: none; } }
.chat-new-bar { position: sticky; top: 76px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 14px; margin: 0 0 14px; background: var(--orange); color: var(--black); border-radius: var(--radius); font-weight: 700; }
.chat-new-bar a { color: var(--black); }
.soon-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--orange); color: var(--orange);
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.notify-soon { border: 1px dashed var(--rule); border-radius: var(--radius); padding: 12px 14px; margin: 4px 0 18px; color: var(--muted); font-size: 14px; }
.check.is-soon { color: var(--muted); }
.check.is-soon input { opacity: .5; }
