/* =========================================================
   AcordAI — Neon design system
   ========================================================= */
:root {
  --h: 200;            /* main hue — changed by theme picker */
  --h2: 235;           /* secondary hue */
  --glow: 1;           /* glow intensity 0..1.6 */
  --neon: hsl(var(--h) 100% 58%);
  --neon-soft: hsl(var(--h) 100% 70%);
  --neon2: hsl(var(--h2) 100% 64%);
  --neon-a: hsla(var(--h), 100%, 58%, .14);
  --neon-b: hsla(var(--h), 100%, 58%, .32);
  --bg: #02040c;
  --bg2: #060b1c;
  --panel: rgba(9, 18, 40, .62);
  --panel-solid: #08112a;
  --panel2: rgba(14, 28, 60, .55);
  --line: hsla(var(--h), 100%, 60%, .16);
  --line-strong: hsla(var(--h), 100%, 60%, .38);
  --text: #e8f3ff;
  --muted: #8ea6c6;
  --dim: #5a6f8e;
  --ok: #2bffb1;
  --warn: #ffc94d;
  --err: #ff4d7a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --gl: 0 0 calc(12px * var(--glow)) hsla(var(--h), 100%, 58%, calc(.55 * var(--glow))), 0 0 calc(32px * var(--glow)) hsla(var(--h), 100%, 58%, calc(.25 * var(--glow)));
  --gl-text: 0 0 calc(8px * var(--glow)) hsla(var(--h), 100%, 60%, calc(.8 * var(--glow))), 0 0 calc(24px * var(--glow)) hsla(var(--h), 100%, 60%, calc(.4 * var(--glow)));
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --sheet-size: 18px;
  color-scheme: dark;
}
:root[data-mode="light"] {
  --bg: #eef4ff; --bg2: #e3ecfb; --panel: rgba(255, 255, 255, .78); --panel-solid: #fff; --panel2: rgba(240, 246, 255, .9);
  --text: #0b1630; --muted: #3e5274; --dim: #7186a8; --neon: hsl(var(--h) 100% 40%); --neon-soft: hsl(var(--h) 90% 35%);
  --line: hsla(var(--h), 80%, 40%, .18); --line-strong: hsla(var(--h), 80%, 40%, .4); --shadow: 0 10px 30px rgba(20, 40, 90, .12);
  color-scheme: light;
}
[data-theme="neon-blue"] { --h: 200; --h2: 235; }
[data-theme="electric"] { --h: 220; --h2: 260; }
[data-theme="cyan"] { --h: 182; --h2: 205; }
[data-theme="purple"] { --h: 275; --h2: 310; }
[data-theme="pink"] { --h: 325; --h2: 280; }
[data-theme="green"] { --h: 145; --h2: 180; }
[data-theme="orange"] { --h: 28; --h2: 350; }
[data-theme="red"] { --h: 355; --h2: 20; }
[data-theme="gold"] { --h: 46; --h2: 25; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--neon-soft); text-decoration: none; }
a:hover { text-shadow: var(--gl-text); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--neon-b); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--neon-b); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- icons ---------- */
.ico { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex-shrink: 0; display: inline-block; }
.btn .ico, .nav a .ico, .dd-menu .ico, .tab .ico, .badge .ico, .chip .ico { margin: 0; }
.nav a, .dd-menu a, .dd-menu button { display: inline-flex; align-items: center; gap: 7px; }
.btn.icon .ico { width: 1.25em; height: 1.25em; }
.admin-nav .ic { display: inline-flex; justify-content: center; color: var(--neon-soft); opacity: .85; }
.admin-nav button.active .ic { opacity: 1; filter: drop-shadow(0 0 5px var(--neon)); }
.empty .big .ico, .feature .ic .ico, .method .ic .ico { width: 1em; height: 1em; color: var(--neon-soft); stroke-width: 1.6; }
.empty .big, .feature .ic, .method .ic { color: var(--neon-soft); }
h1 .ico, h2 .ico, h3 .ico { color: var(--neon-soft); filter: drop-shadow(0 0 calc(6px * var(--glow)) hsla(var(--h), 100%, 60%, .6)); margin-inline-end: .1em; }
.donate-hero > div:first-child { color: var(--neon-soft); filter: drop-shadow(var(--gl)); }
.toast .ico { width: 1.3em; height: 1.3em; color: var(--neon-soft); }
.toast.err > span .ico { color: var(--err); }
.toast.ok > span .ico { color: var(--ok); }
.warn-box .ico { color: var(--warn); }
.console .ico { width: 1em; height: 1em; vertical-align: -0.15em; }
.no-cover .ico { width: .9em; height: .9em; stroke-width: 1.5; }
.top-search .ic .ico { width: 1.05em; height: 1.05em; }

/* ---------- background ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-grid {
  position: absolute; inset: -50% -50% 0; transform: perspective(600px) rotateX(62deg); transform-origin: center top;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px; top: 45%; mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  animation: grid-move 14s linear infinite;
}
@keyframes grid-move { to { background-position: 0 60px, 0 0; } }
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: calc(.35 * var(--glow)); }
.bg-glow.g1 { width: 520px; height: 520px; background: var(--neon); top: -180px; right: -120px; animation: float 18s ease-in-out infinite; }
.bg-glow.g2 { width: 460px; height: 460px; background: var(--neon2); bottom: -160px; left: -140px; animation: float 22s ease-in-out infinite reverse; }
.bg-glow.g3 { width: 300px; height: 300px; background: hsl(calc(var(--h) + 120) 100% 60%); top: 40%; left: 45%; opacity: calc(.1 * var(--glow)); animation: float 26s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(60px, 40px) scale(1.12); } }
:root[data-anim="off"] .bg-grid, :root[data-anim="off"] .bg-glow { animation: none; }
:root[data-mode="light"] .bg-glow { opacity: .18; }
@media (prefers-reduced-motion: reduce) { .bg-grid, .bg-glow, .eq span { animation: none !important; } }

/* ---------- layout ---------- */
.view { max-width: 1280px; margin: 0 auto; padding: 24px 20px 80px; min-height: 70vh; }
.view.wide { max-width: 1500px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: .85rem; }
.tiny { font-size: .75rem; }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.mt { margin-top: 18px; } .mb { margin-bottom: 18px; } .mt2 { margin-top: 32px; }
.hide { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; }
h2 { font-size: 1.45rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
.neon-text { color: var(--neon-soft); text-shadow: var(--gl-text); }
.section-title { display: flex; align-items: center; gap: 12px; margin: 34px 0 16px; }
.section-title h2 { margin: 0; }
.section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to left, transparent, var(--line-strong)); }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px; padding: 10px 22px;
  background: linear-gradient(to bottom, rgba(2, 4, 12, .92), rgba(2, 4, 12, .72)); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
:root[data-mode="light"] .topbar { background: rgba(255, 255, 255, .85); }
.topbar::after { content: ''; position: absolute; inset: auto 0 -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--neon), transparent); opacity: .6; box-shadow: var(--gl); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.logo-svg { height: 38px; width: auto; overflow: visible; filter: drop-shadow(0 0 calc(6px * var(--glow)) hsla(var(--h), 100%, 60%, calc(.7 * var(--glow)))); }
.logo-svg, .logo-svg text { direction: ltr; unicode-bidi: isolate; }
.logo-svg text { font-family: 'Orbitron', var(--font); font-weight: 900; text-anchor: start; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .95rem; transition: .2s; position: relative; }
.nav a:hover { color: var(--text); background: var(--neon-a); text-shadow: none; }
.nav a.active { color: var(--neon-soft); background: var(--neon-a); box-shadow: inset 0 0 0 1px var(--line-strong); }
.top-search { flex: 1; max-width: 360px; position: relative; }
.top-search input { padding-inline-start: 38px; }
.top-search .ic { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.top-actions { display: flex; gap: 8px; align-items: center; margin-inline-start: auto; }
.btn.burger { display: none; } /* .btn is defined below — needs the extra class to win */

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--panel2); color: var(--text); font-weight: 500; transition: .18s; white-space: nowrap;
  font-size: .93rem; line-height: 1.2; user-select: none;
}
.btn:hover { border-color: var(--neon); box-shadow: var(--gl); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.primary { background: linear-gradient(135deg, var(--neon), var(--neon2)); color: #001020; border-color: transparent; font-weight: 700; box-shadow: var(--gl); }
.btn.primary:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--neon-a); border-color: var(--line); box-shadow: none; }
.btn.danger { border-color: rgba(255, 77, 122, .5); color: #ff9db5; }
.btn.danger:hover { border-color: var(--err); box-shadow: 0 0 16px rgba(255, 77, 122, .4); }
.btn.ok { border-color: rgba(43, 255, 177, .45); color: #8dffd6; }
.btn.ok:hover { border-color: var(--ok); box-shadow: 0 0 16px rgba(43, 255, 177, .35); }
.btn.sm { padding: 6px 11px; font-size: .84rem; border-radius: 9px; }
.btn.xs { padding: 3px 8px; font-size: .76rem; border-radius: 7px; }
.btn.lg { padding: 14px 26px; font-size: 1.08rem; border-radius: 14px; }
.btn.icon { padding: 8px; width: 38px; height: 38px; }
.btn.on { background: var(--neon-b); border-color: var(--neon); color: var(--text); box-shadow: var(--gl); }
.input, select.input, textarea.input {
  width: 100%; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(2, 6, 18, .6); outline: none; transition: .18s;
}
:root[data-mode="light"] .input { background: #fff; }
.input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px var(--neon-a), var(--gl); }
textarea.input { resize: vertical; min-height: 110px; line-height: 1.5; }
textarea.code { font-family: var(--mono); font-size: .88rem; direction: ltr; text-align: left; }
textarea.code.rtl { direction: rtl; text-align: right; }
select.input { cursor: pointer; }
select.input option { background: var(--panel-solid); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: var(--muted); font-weight: 500; }
label.field > span { color: var(--text); }
.hint { font-size: .78rem; color: var(--dim); }
input[type="range"] { accent-color: var(--neon); width: 100%; }
input[type="checkbox"] { accent-color: var(--neon); width: 17px; height: 17px; cursor: pointer; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .92rem; }
.switch input { display: none; }
.switch .tr { width: 44px; height: 24px; border-radius: 30px; background: rgba(120, 140, 180, .25); border: 1px solid var(--line-strong); position: relative; transition: .2s; flex-shrink: 0; }
.switch .tr::after { content: ''; position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: .2s; }
.switch input:checked + .tr { background: var(--neon-b); border-color: var(--neon); box-shadow: var(--gl); }
.switch input:checked + .tr::after { right: 22px; background: var(--neon); }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; backdrop-filter: blur(14px);
  box-shadow: var(--shadow); position: relative;
}
.card.glow { border-color: var(--line-strong); box-shadow: var(--shadow), inset 0 0 40px hsla(var(--h), 100%, 60%, .05); }
.card.tight { padding: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h3 { margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 30px; font-size: .74rem; font-weight: 700; border: 1px solid var(--line-strong); background: var(--neon-a); color: var(--neon-soft); white-space: nowrap; }
.badge.ok { color: var(--ok); border-color: rgba(43, 255, 177, .4); background: rgba(43, 255, 177, .08); }
.badge.warn { color: var(--warn); border-color: rgba(255, 201, 77, .4); background: rgba(255, 201, 77, .08); }
.badge.err { color: var(--err); border-color: rgba(255, 77, 122, .45); background: rgba(255, 77, 122, .08); }
.badge.gray { color: var(--muted); border-color: var(--line); background: transparent; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--dim); }
.dot.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot.warn { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.dot.err { background: var(--err); box-shadow: 0 0 10px var(--err); }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.empty .big { font-size: 3rem; margin-bottom: 8px; filter: drop-shadow(var(--gl)); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th { text-align: right; font-weight: 600; color: var(--muted); padding: 10px 12px; background: var(--neon-a); position: sticky; top: 0; white-space: nowrap; font-size: .82rem; }
table.t td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
table.t tr:hover td { background: hsla(var(--h), 100%, 60%, .04); }
table.t .thumb { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 18px; padding-bottom: 8px; }
.tab { padding: 8px 14px; border-radius: 10px; cursor: pointer; color: var(--muted); border: 1px solid transparent; background: none; font-weight: 500; }
.tab:hover { color: var(--text); background: var(--neon-a); }
.tab.active { color: var(--neon-soft); border-color: var(--line-strong); background: var(--neon-a); box-shadow: var(--gl); }
.tab .badge { margin-inline-start: 6px; }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: 70px 20px 60px; border-radius: 28px; overflow: hidden; margin-bottom: 10px; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: conic-gradient(from 200deg at 30% -10%, transparent 0deg, hsla(var(--h), 100%, 60%, .22) 20deg, transparent 40deg),
              conic-gradient(from 140deg at 70% -10%, transparent 0deg, hsla(var(--h2), 100%, 60%, .2) 22deg, transparent 44deg),
              radial-gradient(ellipse at 50% 120%, hsla(var(--h), 100%, 55%, .25), transparent 60%);
  animation: beams 8s ease-in-out infinite alternate;
}
@keyframes beams { to { filter: hue-rotate(20deg) brightness(1.15); transform: scale(1.04); } }
.hero .logo-svg { height: clamp(70px, 13vw, 130px); margin: 0 auto 18px; }
.hero p.tag { font-size: clamp(1.05rem, 2.4vw, 1.4rem); color: var(--muted); margin: 0 auto 30px; max-width: 640px; }
.hero-search { max-width: 640px; margin: 0 auto; display: flex; gap: 10px; }
.hero-search .input { padding: 16px 20px; font-size: 1.1rem; border-radius: 16px; }
.stage-floor { height: 3px; width: min(720px, 90%); margin: 46px auto 0; background: linear-gradient(90deg, transparent, var(--neon), transparent); box-shadow: var(--gl); border-radius: 3px; }
.eq { display: flex; gap: 4px; justify-content: center; align-items: flex-end; height: 34px; margin-top: 26px; }
.eq span { width: 6px; border-radius: 3px; background: linear-gradient(to top, var(--neon2), var(--neon)); box-shadow: var(--gl); animation: eq 1.1s ease-in-out infinite; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px auto 0; max-width: 820px; }
.stat { text-align: center; padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.stat b { display: block; font-size: 1.8rem; font-weight: 900; color: var(--neon-soft); text-shadow: var(--gl-text); }
.stat span { color: var(--muted); font-size: .85rem; }

/* ---------- song cards ---------- */
.song-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; cursor: pointer; transition: .22s; color: var(--text); }
.song-card:hover { transform: translateY(-4px); border-color: var(--neon); box-shadow: var(--shadow), var(--gl); text-shadow: none; }
.song-card .cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--neon-a), transparent); position: relative; overflow: hidden; }
.song-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: .4s; filter: saturate(1.1); }
.song-card:hover .cover img { transform: scale(1.06); }
.song-card .cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2, 4, 12, .9), transparent 60%); }
.song-card .key-chip { position: absolute; bottom: 10px; inset-inline-start: 10px; z-index: 2; font-family: var(--mono); font-weight: 700; padding: 3px 10px; border-radius: 8px; background: rgba(0, 0, 0, .6); border: 1px solid var(--neon); color: var(--neon-soft); text-shadow: var(--gl-text); }
.song-card .body { padding: 12px 14px 14px; }
.song-card .title { font-weight: 700; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-card .artist { color: var(--muted); font-size: .88rem; }
.song-card .meta { display: flex; gap: 10px; color: var(--dim); font-size: .78rem; margin-top: 8px; flex-wrap: wrap; }
.no-cover { display: grid; place-items: center; height: 100%; font-size: 2.6rem; color: var(--neon); text-shadow: var(--gl-text); font-family: 'Orbitron'; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; border: 1px solid transparent; color: var(--text); }
.list-row:hover { background: var(--neon-a); border-color: var(--line); text-shadow: none; }
.list-row img { width: 72px; height: 40px; object-fit: cover; border-radius: 8px; }
.artist-card { text-align: center; cursor: pointer; transition: .2s; }
.artist-card:hover { border-color: var(--neon); box-shadow: var(--gl); transform: translateY(-3px); }
.artist-card .av { width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 10px; object-fit: cover; border: 2px solid var(--neon); box-shadow: var(--gl); background: var(--neon-a); display: grid; place-items: center; font-size: 2rem; font-weight: 900; }

/* ---------- filters ---------- */
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ---------- song page ---------- */
.song-head { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; margin-bottom: 18px; }
.song-head .cover { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--gl); aspect-ratio: 16/9; }
.song-head .cover img { width: 100%; height: 100%; object-fit: cover; }
.song-head h1 { margin-bottom: 4px; }
.song-head .artist { font-size: 1.15rem; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip { padding: 4px 12px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.chip b { color: var(--text); font-family: var(--mono); }
.stars { display: inline-flex; gap: 2px; direction: ltr; }
.stars button { background: none; border: none; cursor: pointer; font-size: 1.25rem; color: var(--dim); padding: 0 1px; transition: .15s; }
.stars button.on { color: var(--warn); text-shadow: 0 0 10px rgba(255, 201, 77, .7); }
.stars button:hover { transform: scale(1.2); }

.toolbar { position: sticky; top: 62px; z-index: 30; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 16px; background: rgba(4, 10, 26, .88); backdrop-filter: blur(14px); border: 1px solid var(--line-strong); box-shadow: var(--shadow); margin-bottom: 16px; }
:root[data-mode="light"] .toolbar { background: rgba(255, 255, 255, .92); }
.tgroup { display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 12px; background: var(--neon-a); border: 1px solid var(--line); }
.tgroup .lbl { font-size: .74rem; color: var(--muted); padding: 0 6px; white-space: nowrap; }
.tgroup .val { font-family: var(--mono); font-weight: 700; min-width: 38px; text-align: center; color: var(--neon-soft); text-shadow: var(--gl-text); }
.key-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.key-grid button { padding: 8px 4px; font-family: var(--mono); font-weight: 700; }
.popover { position: absolute; z-index: 60; background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px; box-shadow: var(--shadow), var(--gl); min-width: 280px; }

.song-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.sheet { font-size: var(--sheet-size); padding: 26px 28px; line-height: 1.25; }
.sheet.cols-2 .sheet-body { column-count: 2; column-gap: 40px; column-rule: 1px solid var(--line); }
.sheet.cols-3 .sheet-body { column-count: 3; column-gap: 32px; column-rule: 1px solid var(--line); }
.sheet-body > * { break-inside: avoid; }
.sheet .sec { margin: 1.1em 0 .45em; font-weight: 700; color: var(--neon2); font-size: .82em; letter-spacing: .3px; display: inline-flex; align-items: center; gap: 8px; padding: 2px 12px; border-radius: 8px; background: hsla(var(--h2), 100%, 60%, .1); border: 1px solid hsla(var(--h2), 100%, 60%, .3); }
.sheet .chorus { border-inline-start: 3px solid var(--neon); padding-inline-start: 14px; margin: .4em 0; background: linear-gradient(to left, var(--neon-a), transparent 70%); border-radius: 4px; }
:root[dir="rtl"] .sheet .chorus { background: linear-gradient(to left, var(--neon-a), transparent 70%); }
.sheet .line { display: flex; flex-wrap: wrap; align-items: flex-end; margin: .15em 0; }
.sheet .seg { display: inline-flex; flex-direction: column; white-space: pre; }
.sheet .ch { font-family: var(--mono); font-weight: 700; color: var(--neon-soft); font-size: .86em; min-height: 1.25em; padding-inline-end: .5em; text-shadow: var(--gl-text); cursor: pointer; direction: ltr; unicode-bidi: isolate; align-self: flex-start; }
.sheet .ch:hover { color: #fff; }
:root[data-mode="light"] .sheet .ch:hover { color: #000; }
.sheet .ly { white-space: pre; }
.sheet .line.nochords .seg .ch { display: none; }
.sheet .line.chords-only { gap: 0 1.2em; margin: .35em 0; }
.sheet .line.chords-only .ch { font-size: .95em; min-height: auto; padding: 0; }
.sheet .rep { color: var(--warn); font-family: var(--mono); font-size: .85em; align-self: center; }
.sheet .gap { height: .8em; }
.sheet .text { white-space: pre-wrap; }
.sheet.lyrics-only .ch { display: none; }
.sheet.lyrics-only .line.chords-only { display: none; }
.sheet.chords-hidden-extra .ch { min-height: 0; }
.sheet .tab { font-family: var(--mono); white-space: pre; direction: ltr; font-size: .8em; color: var(--muted); }
.sheet-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }

.side-panel { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 16px; }
.diagrams { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.diagram { text-align: center; padding: 6px 2px; border-radius: 12px; background: var(--neon-a); border: 1px solid var(--line); cursor: pointer; }
.diagram:hover { border-color: var(--neon); }
.diagram .nm { font-family: var(--mono); font-weight: 700; color: var(--neon-soft); font-size: .9rem; direction: ltr; }
.diagram svg { width: 100%; height: auto; }
.diagram svg .str, .diagram svg .fr { stroke: var(--muted); }
.diagram svg .nut { stroke: var(--text); }
.diagram svg .fing { fill: var(--neon); filter: drop-shadow(0 0 3px var(--neon)); }
.diagram svg .lbl { fill: var(--muted); font-size: 9px; font-family: var(--mono); }
.piano .wk { fill: #e9f1ff; stroke: #33445f; }
.piano .bk { fill: #0b1222; stroke: #000; }
.piano .wk.on { fill: var(--neon); }
.piano .bk.on { fill: var(--neon2); }
.yt-mini { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 16/9; }
.yt-mini iframe { width: 100%; height: 100%; border: 0; display: block; }

/* stage (fullscreen) mode */
body.stage-mode .topbar, body.stage-mode .footer, body.stage-mode .song-head, body.stage-mode .side-panel, body.stage-mode #announce, body.stage-mode .related { display: none !important; }
body.stage-mode .song-layout { grid-template-columns: 1fr; }
body.stage-mode .view { max-width: none; padding: 10px 18px; }
body.stage-mode .toolbar { top: 6px; }
body.stage-mode .sheet { border: none; background: transparent; box-shadow: none; }

/* ---------- auth ---------- */
.auth-box { max-width: 430px; margin: 40px auto; }
.auth-box .logo-svg { height: 60px; margin: 0 auto 10px; }

/* ---------- modal & toasts ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(0, 3, 12, .72); backdrop-filter: blur(6px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .18s; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow: auto; background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: 20px; padding: 24px; box-shadow: var(--shadow), var(--gl); animation: pop .22s cubic-bezier(.2, 1.4, .4, 1); }
.modal.lg { width: min(1100px, 100%); }
.modal.xl { width: min(1400px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 10px; }
.modal-head h2 { margin: 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } }
.toasts { position: fixed; bottom: 20px; left: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--line-strong); box-shadow: var(--shadow), var(--gl); animation: pop .25s; font-size: .93rem; display: flex; gap: 10px; align-items: flex-start; }
.toast.err { border-color: var(--err); box-shadow: var(--shadow), 0 0 18px rgba(255, 77, 122, .35); }
.toast.ok { border-color: var(--ok); box-shadow: var(--shadow), 0 0 18px rgba(43, 255, 177, .3); }
#announce .bar { padding: 10px 20px; text-align: center; font-weight: 500; background: linear-gradient(90deg, var(--neon-a), var(--neon-b), var(--neon-a)); border-bottom: 1px solid var(--line-strong); }
#announce .bar.warn { background: linear-gradient(90deg, rgba(255, 201, 77, .1), rgba(255, 201, 77, .25), rgba(255, 201, 77, .1)); }
#announce .bar.err { background: linear-gradient(90deg, rgba(255, 77, 122, .1), rgba(255, 77, 122, .28), rgba(255, 77, 122, .1)); }

/* ---------- dropdown ---------- */
.dd { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 220px; background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: 14px; padding: 8px; box-shadow: var(--shadow), var(--gl); z-index: 70; display: none; }
.dd.open .dd-menu { display: block; animation: pop .18s; }
.dd-menu a, .dd-menu button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 9px; color: var(--text); background: none; border: none; cursor: pointer; text-align: start; font-size: .92rem; }
.dd-menu a:hover, .dd-menu button:hover { background: var(--neon-a); text-shadow: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: linear-gradient(135deg, var(--neon), var(--neon2)); color: #001020; box-shadow: var(--gl); flex-shrink: 0; }
.role-badge { font-size: .68rem; }

/* theme panel */
.theme-swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.swatch { aspect-ratio: 1; border-radius: 14px; cursor: pointer; border: 2px solid transparent; position: relative; transition: .2s; }
.swatch:hover { transform: scale(1.08); }
.swatch.active { border-color: #fff; box-shadow: 0 0 18px currentColor; }
.swatch span { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-size: .66rem; color: var(--muted); }

/* ---------- admin ---------- */
.admin-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-items: start; }
.admin-layout > *, .grid > * { min-width: 0; }
.admin-nav { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 3px; padding: 12px; }
.admin-nav button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: none; border: 1px solid transparent; color: var(--muted); cursor: pointer; text-align: start; font-weight: 500; font-size: .93rem; }
.admin-nav button:hover { background: var(--neon-a); color: var(--text); }
.admin-nav button.active { color: var(--neon-soft); background: var(--neon-a); border-color: var(--line-strong); box-shadow: var(--gl); }
.admin-nav .ic { width: 22px; text-align: center; }
.admin-nav .badge { margin-inline-start: auto; }
.admin-nav .grp { font-size: .7rem; color: var(--dim); padding: 12px 12px 4px; letter-spacing: 1px; }
.kpi { padding: 18px; }
.kpi .v { font-size: 2rem; font-weight: 900; color: var(--neon-soft); text-shadow: var(--gl-text); line-height: 1.1; }
.kpi .l { color: var(--muted); font-size: .86rem; }
.kpi .s { font-size: .78rem; color: var(--dim); margin-top: 6px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column-reverse; gap: 2px; height: 100%; position: relative; }
.bars .b i { display: block; border-radius: 4px 4px 0 0; min-height: 2px; }
.bars .b i.ok { background: linear-gradient(to top, var(--neon2), var(--neon)); box-shadow: var(--gl); }
.bars .b i.fail { background: var(--err); opacity: .8; }
.bars .b span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: .62rem; color: var(--dim); }
.console {
  font-family: var(--mono); font-size: .8rem; background: #01030a; border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px; height: 320px; overflow: auto; direction: ltr; text-align: left;
  box-shadow: inset 0 0 30px hsla(var(--h), 100%, 50%, .08);
}
:root[data-mode="light"] .console { background: #0b1324; color: #dfe9ff; }
.console .ln { padding: 2px 0; border-bottom: 1px solid rgba(255, 255, 255, .03); white-space: pre-wrap; word-break: break-word; }
.console .ln .ts { color: #4b6285; margin-right: 8px; }
.console .ln.ok { color: #6dffc6; }
.console .ln.err { color: #ff7a9a; }
.console .ln.warn { color: #ffd479; }
.console .ln.info { color: #9cc9ff; }
.console .ln [dir="auto"] { unicode-bidi: plaintext; }
.progress { height: 10px; border-radius: 10px; background: var(--neon-a); overflow: hidden; border: 1px solid var(--line); }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--neon2), var(--neon)); box-shadow: var(--gl); transition: width .4s; }
.progress.big { height: 16px; }
.pl-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.pl-card .cover { aspect-ratio: 16/9; background: var(--neon-a); position: relative; }
.pl-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.pl-card .cnt { position: absolute; bottom: 8px; inset-inline-end: 8px; background: rgba(0, 0, 0, .75); padding: 2px 8px; border-radius: 6px; font-size: .78rem; }
.pl-card .body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.pl-card.approved { border-color: var(--ok); box-shadow: 0 0 18px rgba(43, 255, 177, .2); }
.pl-card.rejected { opacity: .5; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.editor-grid textarea { min-height: 520px; }
.preview-box { max-height: 560px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.perm-grid label { display: flex; gap: 8px; align-items: center; font-size: .88rem; padding: 6px 10px; border-radius: 9px; background: var(--neon-a); border: 1px solid var(--line); cursor: pointer; }
.queue-dock { position: fixed; bottom: 18px; right: 18px; z-index: 90; width: 320px; padding: 14px; }
.queue-dock .row { gap: 8px; }
.warn-box { padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255, 201, 77, .45); background: rgba(255, 201, 77, .07); color: #ffe3a1; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
:root[data-mode="light"] .warn-box { color: #6b4a00; }
.ok-box { padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(43, 255, 177, .4); background: rgba(43, 255, 177, .06); }
.step { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 12px; }
.step .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--neon), var(--neon2)); color: #001020; box-shadow: var(--gl); font-family: 'Orbitron'; font-size: .9rem; }

.google-btn { background: #fff; color: #1f1f1f; border-color: #dadce0; font-weight: 600; }
.google-btn:hover { background: #f8faff; border-color: var(--neon); color: #1f1f1f; }
.google-btn .ico { width: 1.3em; height: 1.3em; }
.or-sep { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: .82rem; margin: 16px 0; }
.or-sep::before, .or-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* anti-bot challenge / blocked screen */
.guard-overlay { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: rgba(1, 3, 10, .88); backdrop-filter: blur(8px); padding: 20px; }
.guard-box { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 30px 36px; border-radius: 20px; background: var(--panel-solid); border: 1px solid var(--line-strong); box-shadow: var(--shadow), var(--gl); max-width: 420px; }
.guard-box .spinner { margin: 0 0 6px; }
.guard-box .ico { width: 1em; height: 1em; color: var(--err); }
/* security console */
.sec-row { cursor: pointer; }
.sec-row:hover { background: rgba(255, 255, 255, .04); }
.ip-link { font-family: var(--mono); color: var(--neon-soft); cursor: pointer; border-bottom: 1px dashed var(--line-strong); direction: ltr; unicode-bidi: isolate; }
.flag { font-size: .72rem; padding: 0 5px; border-radius: 4px; background: var(--neon-a); color: var(--muted); font-family: var(--mono); }
.sec-type { font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.sec-type.hi { color: #ff7a9a; background: rgba(255, 77, 122, .12); }
.sec-type.md { color: #ffd479; background: rgba(255, 201, 77, .12); }
.sec-type.lo { color: #9cc9ff; background: rgba(120, 170, 255, .12); }

/* ads */
.ad-slot.on { margin: 16px 0; }
.ad-slot.ad-wide.on { max-width: 1280px; margin: 14px auto 0; padding: 0 20px; }
.ad { position: relative; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.ad-label { position: absolute; top: 6px; inset-inline-start: 8px; z-index: 2; font-size: .66rem; letter-spacing: .5px; padding: 1px 7px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #c8d6ea; pointer-events: none; }
.ad-image img { width: 100%; height: auto; max-height: 260px; object-fit: cover; display: block; }
.ad-image a:hover { text-shadow: none; }
.ad-text-body { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 16px 14px; }
.ad-hero a { display: flex; align-items: center; min-height: 130px; padding: 18px 4%; background: #02040c center right / cover no-repeat; color: #e8f3ff; }
.ad-hero a:hover { text-shadow: none; filter: brightness(1.08); }
.ad-hero-text { width: 50%; margin-inline-start: auto; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ad-hero-text b { font-size: clamp(1rem, 2.4vw, 1.6rem); font-weight: 900; text-shadow: 0 0 14px #22d3ff; }
.ad-hero-text span { font-size: clamp(.75rem, 1.3vw, .9rem); color: #a9cdf2; }
.ad-hero-text em { font-style: normal; font-weight: 700; font-size: .85rem; color: #001020; background: linear-gradient(135deg, #22d3ff, #3b5bff); padding: 7px 16px; border-radius: 9px; box-shadow: 0 0 14px rgba(34, 211, 255, .6); }
@media (max-width: 600px) { .ad-hero-text { width: 70%; } .ad-hero a { background-position: 80% center; } }
.ad-frame { width: 100%; border: 0; display: block; background: transparent; }
.ad-html { padding-top: 22px; }
.ad-empty { padding: 40px; text-align: center; color: var(--dim); }
.side-panel .ad-slot.on { margin: 0; }
/* floating popup ad */
.ad-pop-back { position: fixed; inset: 0; z-index: 140; background: rgba(0, 3, 12, .62); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .25s; }
.ad-pop { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 16px; box-shadow: 0 0 40px rgba(34, 211, 255, .25); animation: popin .3s ease-out; }
.ad-pop .ad { border-color: var(--neon); }
.ad-pop .ad-image img { max-height: 70vh; object-fit: contain; background: #02040c; }
.ad-pop .ad-hero a { min-height: 260px; }
.ad-pop-x { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 5; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0, 0, 0, .7); color: #fff; font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.ad-pop-x:disabled { cursor: default; opacity: .85; color: #ffd76a; }
.ad-pop-x:not(:disabled):hover { background: var(--neon); color: #001020; }
@keyframes popin { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
/* report type picker */
.rep-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rep-kind { text-align: start; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.rep-kind.on { border-color: var(--neon); box-shadow: 0 0 12px rgba(34, 211, 255, .3); }
.rep-kind.warn.on { border-color: #ff8a3d; box-shadow: 0 0 12px rgba(255, 138, 61, .35); }
.chips-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-pick button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; font: inherit; font-size: .85rem; }
.chips-pick button.on { border-color: #ff8a3d; background: rgba(255, 138, 61, .15); }
/* Pro tools */
.pro-lock { opacity: .55; }
.pro-note { border: 1px dashed rgba(255, 215, 106, .5); border-radius: 12px; padding: 10px; background: rgba(255, 215, 106, .05); }
.pro-note textarea { min-height: 70px; width: 100%; }
.setlist-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(255, 215, 106, .45); background: rgba(255, 215, 106, .07); margin-bottom: 12px; }
.setlist-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 6px; background: var(--panel); }
.setlist-item .grow { min-width: 0; }
.metro-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--line); display: inline-block; transition: background .05s; }
.metro-dot.on { background: var(--neon); box-shadow: 0 0 10px var(--neon); }
.metro-dot.on.first { background: #ffd76a; box-shadow: 0 0 10px #ffd76a; }
.tuner-note { font-size: 3.4rem; font-weight: 900; text-align: center; line-height: 1; }
.tuner-meter { position: relative; height: 14px; border-radius: 8px; background: linear-gradient(90deg, #ff4d6d, #ffd76a 40%, #3dff9a 50%, #ffd76a 60%, #ff4d6d); margin: 14px 0 6px; }
.tuner-meter i { position: absolute; top: -6px; width: 4px; height: 26px; background: #fff; border-radius: 2px; left: 50%; transition: left .12s; box-shadow: 0 0 6px #fff; }
.lefty .diagram svg { transform: scaleX(-1); }
.lefty .diagram svg text { transform-box: fill-box; transform-origin: center; transform: scaleX(-1); }

/* donate */
.donate-hero { text-align: center; padding: 40px 20px; }
.donate-amount { font-size: 3rem; font-weight: 900; color: var(--neon-soft); text-shadow: var(--gl-text); }
.method { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.method .ic { font-size: 2.2rem; filter: drop-shadow(var(--gl)); }
.donor { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }

.footer { border-top: 1px solid var(--line); padding: 30px 20px; text-align: center; color: var(--dim); font-size: .88rem; }
.footer .links { display: flex; gap: 18px; justify-content: center; margin-bottom: 10px; flex-wrap: wrap; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--neon-a); border-top-color: var(--neon); animation: spin .8s linear infinite; margin: 40px auto; box-shadow: var(--gl); }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; margin: 0; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.kbd { font-family: var(--mono); font-size: .75rem; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-strong); background: var(--neon-a); }
.feature { text-align: center; }
.feature .ic { font-size: 2.2rem; margin-bottom: 8px; filter: drop-shadow(var(--gl)); }

/* ---------- live chat ---------- */
.chatw { position: fixed; bottom: 20px; right: 20px; z-index: 150; }
.chat-fab { width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line-strong); background: linear-gradient(135deg, var(--neon), var(--neon2)); color: #001020; font-size: 1.5rem; cursor: pointer; box-shadow: var(--gl), var(--shadow); display: grid; place-items: center; position: relative; transition: transform .15s; }
.chat-fab:hover { transform: scale(1.07); }
.chat-fab .ico { width: 26px; height: 26px; }
.chat-badge { position: absolute; top: -4px; left: -4px; background: var(--err); color: #fff; font-size: .75rem; font-weight: 700; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; padding: 0 5px; }
.chat-panel { width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 110px)); display: flex; flex-direction: column; padding: 0 !important; overflow: hidden; background: var(--panel-solid) !important; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--neon-a); }
.chat-head .ok { color: var(--ok); }
.chat-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 82%; display: flex; flex-direction: column; gap: 2px; }
.chat-msg > div { padding: 8px 12px; border-radius: 14px; line-height: 1.5; word-break: break-word; white-space: normal; }
.chat-msg.u { align-self: flex-start; }
.chat-msg.u > div { background: linear-gradient(135deg, var(--neon), var(--neon2)); color: #001020; border-bottom-right-radius: 4px; }
.chat-msg.s { align-self: flex-end; }
.chat-msg.s > div { background: var(--panel2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-note { font-size: .82rem; color: var(--muted); text-align: center; padding: 6px 10px; border: 1px dashed var(--line); border-radius: 10px; }
.chat-form { padding: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.chat-form textarea { resize: none; min-height: 42px; max-height: 120px; }
.chat-form .input.sm { padding: 6px 10px; font-size: .85rem; flex: 1; min-width: 0; }
@media (max-width: 600px) { .chatw { bottom: 14px; right: 14px; } }
/* admin chat */
.sup-layout { display: grid; grid-template-columns: 300px 1fr; gap: 14px; min-height: 560px; }
.sup-list { overflow-y: auto; max-height: 640px; padding: 6px !important; }
.sup-item { display: block; width: 100%; text-align: start; padding: 10px; border-radius: 10px; border: 1px solid transparent; background: none; color: inherit; font: inherit; cursor: pointer; }
.sup-item:hover, .sup-item.on { background: var(--neon-a); border-color: var(--line); }
.sup-conv { display: flex; flex-direction: column; padding: 0 !important; overflow: hidden; max-height: 640px; }
.sup-conv .chat-body { min-height: 380px; }
@media (max-width: 900px) { .sup-layout { grid-template-columns: 1fr; } }

/* ---------- print ---------- */
@media print {
  .topbar, .footer, .toolbar, .side-panel, .bg-fx, .related, #announce, .no-print, #queue-dock, .toasts, #chatw { display: none !important; }
  body { background: #fff; color: #000; }
  .song-layout { grid-template-columns: 1fr; }
  .card { box-shadow: none; border: none; background: #fff; backdrop-filter: none; }
  .sheet .ch { color: #000; text-shadow: none; }
  .sheet .sec { color: #000; background: #eee; border-color: #999; }
  .sheet .chorus { background: none; border-color: #000; }
  .song-head .cover { display: none; }
  .song-head { grid-template-columns: 1fr; }
  .ad-slot, .warn-box, .song-head .row.mt, .song-head .chip:nth-child(n+6) { display: none !important; }
  .sheet { padding: 0; font-size: var(--print-size, var(--sheet-size)); }
  .song-head h1 { color: #000; text-shadow: none; }
  .song-head .artist { color: #333; }
  .song-head .chip { background: none; border-color: #bbb; color: #333; box-shadow: none; }
  .song-head .chip b, .song-head .chip span, .song-head .chip svg { color: #000 !important; }
  body.print-color .song-head .chip b { color: #0a3f9c !important; }
  .sheet-meta { color: #555; }
  body.print-color { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.print-color .sheet .ch { color: #0a5bd6; }
  body.print-color .sheet .sec { color: #6b21c8; background: #f1e9ff; border-color: #c9adf3; }
  body.print-color .sheet .chorus { border-color: #0a5bd6; background: #eef5ff !important; }
  body.print-plain .sheet .chorus { background: none !important; }
  body.print-color .sheet .rep { color: #c2410c; }
  body.print-color .song-head h1 { color: #0a3f9c; }
  body.print-plain .song-head .chips, body.print-plain .sheet-meta { display: none; }
  body.print-plain .sheet .sec { background: none; border: none; padding: 0; text-decoration: underline; }
  body.print-plain .sheet .chorus { border: none; padding-inline-start: 0; }
  body.print-plain .sheet .ch { color: #000; }
  .print-wm { display: block !important; position: fixed; left: -14mm; top: 50%; width: 60mm; transform: translateY(-50%) rotate(-90deg); transform-origin: center; opacity: .13; filter: grayscale(1) brightness(.35); -webkit-print-color-adjust: exact; print-color-adjust: exact; z-index: 0; pointer-events: none; }
  .print-wm * { text-shadow: none !important; box-shadow: none !important; }
  .print-wm svg { width: 100%; height: auto; }
  .print-wm .ltr-logo { direction: ltr; }
}
.print-wm { display: none; }
.badge.pro { color: #ffd76a; border-color: rgba(255, 215, 106, .45); background: rgba(255, 215, 106, .1); }
.print-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.print-opt { border: 1px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; text-align: start; background: var(--neon-a); color: inherit; font: inherit; }
.print-opt.on { border-color: var(--neon); box-shadow: var(--gl); }
.print-opt .pv { background: #fff; color: #000; border-radius: 8px; padding: 8px 10px; margin-top: 8px; font-size: .8rem; line-height: 1.3; direction: rtl; }
.print-opt .pv i { font-style: normal; font-weight: 700; font-family: var(--mono); display: block; direction: ltr; text-align: right; }
.print-opt.c .pv i { color: #0a5bd6; }
.print-opt.c .pv b { color: #6b21c8; background: #f1e9ff; padding: 0 6px; border-radius: 4px; font-size: .72rem; }
.pro-hero { text-align: center; padding: 36px 20px; }
.pro-price { font-size: 2.6rem; font-weight: 800; color: var(--neon-soft); text-shadow: var(--gl-text); }
.pro-feats { display: grid; gap: 10px; max-width: 460px; margin: 18px auto; text-align: start; }
.pro-feats div { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--neon-a); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .song-layout { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .admin-nav .grp { display: none; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1060px) {
  .topbar { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .nav { display: none; width: 100%; order: 5; flex-direction: column; }
  .nav.open { display: flex; }
  .btn.burger { display: inline-flex; }
  .top-search { order: 4; max-width: none; width: 100%; flex-basis: 100%; }
  .toolbar { top: 0; position: relative; }
}
@media (max-width: 860px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filters > :first-child { grid-column: 1 / -1; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .song-head { grid-template-columns: 1fr; }
  .song-head .cover { max-width: 360px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .toolbar { top: 0; position: relative; }
  .sheet { padding: 18px 14px; }
  .sheet.cols-2 .sheet-body, .sheet.cols-3 .sheet-body { column-count: 1; }
  .view { padding: 16px 14px 70px; }
  .queue-dock { width: auto; left: 12px; right: 12px; }
}
@media (max-width: 520px) {
  .g4 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .hero { padding: 40px 10px; }
  .hero-search { flex-direction: column; }
}
