:root {
  --bg: #0b0b0b; --panel: #141412; --panel2: #1c1b18; --line: #2e2a22; --text: #f2eee4; --muted: #b3ad9f;
  --accent: #f2ce6b; --accent-ink: #0b0b0b; --gold: #e0a92b; --good: #3ecf8e; --bad: #ff6b6b; --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
header.top { border-bottom: 1px solid var(--line); background: rgba(11,11,15,.9); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { white-space: nowrap; font-weight: 800; letter-spacing: .02em; color: var(--text); font-size: 18px; }
.brand span { color: var(--accent); }
nav.links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 15px; }
nav.links a { color: var(--muted); }
nav.links a.btn { color: var(--accent-ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; padding: 9px 18px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none !important; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.danger { background: var(--bad); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.hero { padding: 48px 0 24px; }
.hero h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.1; margin: 0 0 10px; }
.hero p { color: var(--muted); max-width: 640px; margin: 0 0 18px; font-size: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 44vw), 1fr)); gap: 16px; }
.track { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.track .art { aspect-ratio: 1; background: linear-gradient(135deg, #2b2340, #102a35); position: relative; display: flex; align-items: center; justify-content: center; }
.track .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.track .art .ph { font-size: 42px; color: rgba(255,255,255,.25); font-weight: 800; }
.playbtn { position: absolute; right: 10px; bottom: 10px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent);
  color: var(--accent-ink); font-size: 18px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.track .meta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.track .t { font-weight: 700; }
.track .a { color: var(--muted); font-size: 14px; }
.track .row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; gap: 8px; }
.tag { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.tag.new { color: var(--accent); border-color: var(--accent); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 24px 0; }
.price { font-size: 34px; font-weight: 800; }
.price small { font-size: 15px; color: var(--muted); font-weight: 500; }
ul.ticks { padding-left: 18px; color: var(--muted); }
.fine { color: var(--muted); font-size: 13px; }
form.stack { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
label { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
label.check { flex-direction: row; align-items: flex-start; gap: 8px; color: var(--text); }
input, select, textarea { background: var(--panel2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px 12px; font: inherit; width: 100%; }
label.check input { width: auto; margin-top: 4px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.msg { padding: 10px 14px; border-radius: 10px; font-size: 14px; display: none; }
.msg.show { display: block; }
.msg.err { background: rgba(255,107,107,.12); color: #ffb3b3; border: 1px solid rgba(255,107,107,.35); }
.msg.ok { background: rgba(62,207,142,.12); color: #a6f0cf; border: 1px solid rgba(62,207,142,.35); }
section { margin: 28px 0; }
h2 { font-size: 22px; margin: 0 0 14px; }
footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0 120px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }
/* sticky player */
.player { position: fixed; left: 0; right: 0; bottom: 0; background: #111118; border-top: 1px solid var(--line); z-index: 10; display: none; }
.player.show { display: block; }
.player .wrap { display: flex; align-items: center; gap: 14px; padding: 10px 16px; }
.player .now { flex: 1; min-width: 0; }
.player .now .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .now .s { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player audio { width: min(420px, 45vw); }
.player .note { font-size: 12px; color: var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.tablewrap { overflow-x: auto; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.tabs button { background: var(--panel); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; font: inherit; }
.tabs button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.kpi .v { font-size: 24px; font-weight: 800; }
.kpi .l { color: var(--muted); font-size: 13px; }
.pill { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.pill.pub { color: var(--good); border-color: var(--good); }
.pill.draft { color: var(--muted); }
.pill.removed { color: var(--bad); border-color: var(--bad); }
.progress { height: 6px; background: var(--panel2); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
@media (max-width: 640px) {
  .two { grid-template-columns: 1fr; }
  .player .wrap { flex-wrap: wrap; }
  .player audio { width: 100%; }
  nav.links { gap: 10px; font-size: 14px; flex-wrap: nowrap; }
  nav.links a:first-child { display: none; }
  .brand { font-size: 16px; }
  .grid { gap: 10px; }
  .track .meta { padding: 10px; }
  .track .row { flex-direction: column; align-items: flex-start; }
  .hide-sm { display: none; }
}
/* embed */
body.embed { background: var(--bg); }
body.embed .list { display: flex; flex-direction: column; gap: 6px; padding: 10px; }
body.embed .item { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
body.embed .item img, body.embed .item .ph { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: #2b2340; flex: none; }
body.embed .item .info { flex: 1; min-width: 0; }
body.embed .item .info div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid > p { grid-column: 1 / -1; }

/* ---- brewerevolution.com look ---- */
h1, h2, h3, h4, .btn, .brand, .tabs button { font-family: Montserrat, system-ui, sans-serif; }
h1, h2 { color: #fff7e2; letter-spacing: .08em; text-transform: uppercase; }
h2 { color: var(--gold); }
.hero h1 { letter-spacing: .06em; }
.btn { border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
#site-header { position: sticky; top: 0; z-index: 20; background: rgba(11,11,11,.96); border-bottom: 1px solid rgba(224,169,43,.35); backdrop-filter: blur(6px); }
.sitebar .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.sitebar .logo img { display: block; width: 44px; height: 44px; }
.mainmenu { display: flex; gap: 34px; flex: 1; justify-content: center; }
.mainmenu a { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 17px; letter-spacing: .04em; color: var(--text); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.mainmenu a:hover, .mainmenu a.active { color: var(--accent); border-bottom-color: var(--gold); text-decoration: none; }
#site-header nav.links { gap: 14px; flex-wrap: nowrap; }
#site-header nav.links a { font-family: Montserrat, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .04em; color: var(--muted); }
#site-header nav.links a.btn { color: var(--accent-ink); }
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; margin-left: auto; }
.menu-toggle span { display: block; height: 2px; background: var(--text); margin: 5px 0; }
.adminbar { background: #16140f; border-bottom: 1px solid var(--line); }
.adminbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 46px; gap: 12px; font-family: Montserrat, sans-serif; }
.adminbar a { color: var(--muted); margin-right: 10px; }
#site-footer { border-top: 1px solid rgba(224,169,43,.35); margin-top: 56px; padding: 40px 0 120px; color: var(--muted); font-size: 14px; background: #080808; }
.footgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 28px; }
#site-footer h4 { color: var(--gold); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 8px 0 10px; }
#site-footer ul { list-style: none; padding: 0; margin: 0; columns: 2; }
#site-footer li { margin: 0 0 6px; }
#site-footer a { color: var(--muted); }
#site-footer a:hover { color: var(--accent); }
#site-footer .copy { margin-top: 24px; font-size: 12px; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .sitebar .wrap { flex-wrap: wrap; height: auto; min-height: 64px; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .mainmenu { display: none; order: 3; flex-basis: 100%; flex-direction: column; gap: 4px; }
  #site-header.open .mainmenu { display: flex; }
  #site-header nav.links { order: 2; }
  .footgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  #site-header nav.links { gap: 10px; }
  #site-header nav.links a { font-size: 12px; }
  #site-header nav.links a[href="/account#library"] { display: none; }
  .sitebar .logo img { width: 38px; height: 38px; }
  .footgrid { grid-template-columns: 1fr; }
}
