:root {
  --bg: #08090b;
  --bg2: #0e1014;
  --card: #13161b;
  --card2: #181c22;
  --line: #262b33;
  --line2: #323843;
  --text: #eef0f3;
  --muted: #9aa1ab;
  --dim: #6b727c;
  --red: #e5262e;
  --red2: #ff3b3f;
  --green: #2fd158;
  --yellow: #f6c21c;
  --orange: #ff8a1f;
  --blue: #3aa3ff;
  --grey: #5b616b;
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  min-height: 100vh;
  background-repeat: no-repeat;
  background: var(--bg);
  background-image: radial-gradient(1200px 600px at 50% -200px, #1b0d0f 0%, rgba(8, 9, 11, 0) 70%);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font-family: inherit; }

/* ---------- logo ---------- */
.logo { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; }
.logo-word {
  font-family: "Exo 2", "Inter", sans-serif; font-style: italic; font-weight: 900;
  font-size: 40px; letter-spacing: 0.5px; color: #fff;
}
.logo-word b { color: var(--red); font-weight: 900; }
.logo-sub { font-size: 13px; letter-spacing: 3.2px; color: #d9dce0; margin-top: 4px; font-weight: 500; }

/* ---------- toolbar (не попадает в экспорт) ---------- */
.toolbar {
  max-width: 880px; margin: 18px auto 10px; padding: 0 16px;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.toolbar .spacer { flex: 1; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 9px; border: 1px solid var(--line2); background: var(--card2); color: var(--text);
  font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: #4a515d; background: #1e232a; }
.btn.primary { background: linear-gradient(180deg, #f0323a, #c3141c); border-color: #f0323a; color: #fff; }
.btn.primary:hover { background: linear-gradient(180deg, #ff434a, #d01a22); }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 16px; height: 16px; }

/* ---------- report ---------- */
.report {
  max-width: 880px; margin: 0 auto 22px; padding: 22px 18px 18px;
  background: var(--bg2);
  background-image: radial-gradient(900px 380px at 15% -80px, #2a0c10 0%, rgba(14, 16, 20, 0) 65%);
  border: 1px solid #1b1f25; border-radius: 16px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px;
}
.card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; letter-spacing: .1px; }
.card h3 small { font-weight: 500; color: #cfd3d8; font-size: 16px; }
.muted { color: var(--muted); }

.rp-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.rp-head-right { text-align: right; }
.rp-head-title { font-size: 17px; font-weight: 700; }
.rp-head-num { margin-top: 6px; color: var(--muted); font-size: 13px; letter-spacing: .3px; }
.rp-head-num b { color: var(--text); }
.rp-head-ver { margin-top: 2px; color: var(--dim); font-size: 11.5px; letter-spacing: .3px; }
.car-svg { width: 120px; height: 34px; color: #3a3f48; margin-top: 4px; }

.rp-track { display: grid; grid-template-columns: 1fr 260px; gap: 14px; margin-bottom: 14px; }
.track-main { display: flex; gap: 16px; align-items: center; }
.cover {
  width: 108px; height: 108px; border-radius: 10px; flex: 0 0 auto; object-fit: cover;
  background: linear-gradient(135deg, #3a0a0e, #12151a 70%); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.cover svg { width: 46px; height: 46px; color: var(--red); opacity: .9; }
.track-artist { font-size: 21px; font-weight: 700; margin-bottom: 4px; }
.track-title { font-size: 17px; color: #d6d9de; margin-bottom: 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: #1d2128; border: 1px solid var(--line2); border-radius: 8px; padding: 5px 12px; font-size: 13px; color: #d9dce1; }
.chip b { color: #fff; font-weight: 600; }
.info-list { background: #101318; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.info-row { display: flex; gap: 10px; align-items: center; font-size: 13.5px; }
.info-row svg { width: 18px; height: 18px; color: #cfd3d8; flex: 0 0 auto; }
.info-row b { font-weight: 700; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi { display: flex; gap: 12px; align-items: flex-start; min-height: 98px; }
.kpi-icon { width: 30px; height: 30px; color: #cfd3d8; flex: 0 0 auto; margin-top: 2px; }
.kpi-label { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.kpi-value { font-size: 22px; font-weight: 700; }
.kpi-value.big { font-size: 34px; font-weight: 800; letter-spacing: -.5px; }
.kpi-value small { font-size: 18px; color: #cfd3d8; font-weight: 500; }
.kpi-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.bar { height: 10px; border-radius: 6px; background: #2a2f37; overflow: hidden; margin-top: 10px; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #22b84a, #3be36a); }
.bar.warn > i { background: linear-gradient(90deg, #d89f00, #f6c21c); }
.bar.bad > i { background: linear-gradient(90deg, #b8141b, #ff3b3f); }
.bar.thin { height: 6px; margin-top: 6px; }

/* общее качество: итог по 1000-балльной шкале + разбивка по категориям */
.kpi.score-card { display: block; grid-column: span 2; grid-row: span 2; }
.score-word { font-size: 22px; font-weight: 700; color: #cfd3d8; letter-spacing: 0; margin-right: 4px; }
.score-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; margin-top: 16px;
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.07); }
.sp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13.5px; }
.sp-name { font-weight: 600; }
.sp-val { color: var(--muted); white-space: nowrap; }
.sp-val b { color: #fff; font-size: 15px; }
.sp-hint { color: var(--dim); font-size: 11.5px; line-height: 1.3; margin-top: 5px; }
.sp-info { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 6px;
  vertical-align: 1px; border-radius: 50%; border: 1px solid #6b727d; background: none; color: #cfd3d8; padding: 0;
  font: italic 700 10.5px/1 Georgia, "Times New Roman", serif; cursor: pointer; }
.sp-info:hover, .sp-info:focus-visible { border-color: #ff4b50; color: #fff; background: #3a0b0f; outline: none; }

/* всплывающее описание категории */
dialog.help { max-width: 560px; width: calc(100% - 32px); max-height: calc(100% - 48px); overflow: auto; padding: 22px 24px 18px;
  border: 1px solid var(--line2); border-radius: 14px; background: #14171c; color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
dialog.help::backdrop { background: rgba(4, 5, 7, .72); }
dialog.help h3 { margin: 0 28px 12px 0; font-size: 19px; }
dialog.help .help-max { color: var(--muted); font-size: 13px; font-weight: 500; margin-left: 6px; }
dialog.help h4 { margin: 14px 0 5px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: #ff4b50; }
dialog.help p, dialog.help li { font-size: 14px; line-height: 1.5; color: #dfe2e6; margin: 0; }
dialog.help ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; }
.help-close { position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line2);
  background: #1b1f26; color: #cfd3d8; font-size: 20px; line-height: 1; cursor: pointer; }
.help-close:hover { border-color: #ff4b50; color: #fff; }

/* достоверность анализа */
.reliab { margin-bottom: 14px; display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; align-items: center; }
.rl-head { display: flex; align-items: center; gap: 12px; }
.rl-head .kpi-label { margin: 0; }
.rl-badge { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 4px 10px;
  border-radius: 6px; border: 1px solid currentColor; }
.rl-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 18px; }
.rl-item { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--muted); }
.rl-item b { font-size: 15px; }
.reliab .ok { color: #3be36a; } .reliab .warn { color: #f6c21c; } .reliab .bad { color: #ff3b3f; } .reliab .na { color: #cfd3d8; }
.rl-issues { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.07); color: #cfd3d8; font-size: 12.5px; }
.rl-issues div { display: flex; gap: 8px; align-items: flex-start; }
.rl-issues svg { width: 15px; height: 15px; flex: 0 0 auto; color: #f6c21c; margin-top: 1px; }

.grid-main { display: grid; grid-template-columns: 1fr 262px; gap: 12px; margin-bottom: 14px; }
.legend { display: flex; justify-content: center; gap: 22px; font-size: 13px; color: #d9dce1; margin: -2px 0 4px; }
.legend i { display: inline-block; width: 26px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 7px; }
.chart { width: 100%; display: block; }
.chart.fr { height: 210px; }
.chart.dev { height: 170px; }
.dev-title { font-size: 14px; font-weight: 700; margin: 10px 0 2px; }
.dev-title span { font-weight: 400; color: #cfd3d8; }

.concl-list { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.concl { display: flex; gap: 12px; align-items: flex-start; }
.concl svg { width: 26px; height: 26px; flex: 0 0 auto; }
.concl-t { font-size: 14px; line-height: 1.4; }
.concl-t span { color: #d0d4d9; }

.grid-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.col { display: flex; flex-direction: column; gap: 12px; }
table.bands { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.bands th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 0 4px 8px; }
table.bands td { padding: 7px 4px; border-top: 1px solid #1f242b; white-space: nowrap; }
table.bands td.val { font-weight: 700; text-align: right; padding-right: 14px; }
table.bands td.rate { color: #d0d4d9; font-size: 12.5px; white-space: normal; }
.dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; vertical-align: -2px; margin-right: 8px; }
.dot.green { background: var(--green); } .dot.yellow { background: var(--yellow); }
.dot.orange { background: var(--orange); } .dot.red { background: var(--red2); } .dot.grey { background: var(--grey); }

.metrics { display: flex; flex-direction: column; }
.metric { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid #1f242b; font-size: 13.5px; }
.metric:first-child { border-top: 0; }
.metric svg { width: 18px; height: 18px; color: #cfd3d8; flex: 0 0 auto; }
.metric .lbl { flex: 1; }
.metric .v { font-weight: 700; }
.metric.bold .lbl { font-weight: 700; }

.dsp { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.dsp-head { background: linear-gradient(180deg, #d81f27, #a3121a); padding: 14px 18px; font-size: 18px; font-weight: 700; }
.dsp-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rec { display: flex; gap: 14px; align-items: center; background: #171b21; border: 1px solid var(--line2); border-radius: 10px; padding: 10px 14px; }
.rec-ic { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.rec-ic svg { width: 26px; height: 26px; }
.rec-ic.mid { background: #3a1013; color: #ff3b3f; border: 1px solid #5c1a1e; }
.rec-ic.low { background: #3a2a08; color: #f6c21c; border: 1px solid #5a430e; }
.rec-ic.high { background: #3a2a08; color: #f6c21c; border: 1px solid #5a430e; }
.rec-title { font-weight: 700; font-size: 14.5px; margin-bottom: 2px; }
.rec-act { font-size: 13px; color: #d6d9de; }
.rec-line { font-size: 13px; color: #fff; }
.note { display: flex; gap: 12px; background: #0f1a2a; border: 1px solid #23456e; border-radius: 10px; padding: 10px 14px; font-size: 12.5px; color: #cfd8e3; }
.note svg { width: 22px; height: 22px; color: var(--blue); flex: 0 0 auto; }
.note p { margin: 0 0 6px; } .note p:last-child { margin: 0; }
.no-recs { color: #cfd3d8; padding: 10px 6px; }

.itog {
  display: flex; align-items: center; gap: 18px; padding: 16px 18px;
  border-radius: var(--radius); border: 1px solid #6e1218;
  background: linear-gradient(90deg, #6b0d12 0%, #2a0a0d 45%, #1a0b0d 100%);
}
.itog-l { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 800; flex: 0 0 auto; padding-right: 8px; }
.itog-l svg { width: 42px; height: 42px; }
.itog-text { flex: 1; font-size: 14px; color: #eef0f3; }
.itog-r { display: flex; align-items: center; gap: 16px; border: 1px solid #c3242b; background: #3a0b0f; border-radius: 10px; padding: 10px 16px; flex: 0 0 auto; }
.itog-r span { font-size: 13.5px; line-height: 1.3; }
.itog-r b { font-size: 28px; font-weight: 800; color: #ff4b50; white-space: nowrap; }
.promo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 13px 18px; border-radius: 12px;
  border: 1px solid #c3242b; background: linear-gradient(90deg, #2a0a0d, #16090b 60%, #120d10); text-decoration: none; color: #fff; }
.promo:hover { border-color: #ff4b50; }
.promo svg { width: 22px; height: 22px; color: #ff4b50; flex: 0 0 auto; }
.promo-text { flex: 1; font-size: 15px; font-weight: 700; }
.promo-url { font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; }

/* ---------- details ---------- */
.details h2 { margin: 0 0 14px; font-size: 20px; }
.det-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid #1f242b; font-size: 13.5px; }
.kv:first-of-type { border-top: 0; }
.kv span:first-child { color: #cfd3d8; }
.kv b { font-weight: 700; white-space: nowrap; }
.kv small { display: block; color: var(--dim); font-size: 11.5px; }
table.lm { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.lm th { text-align: right; color: var(--muted); font-weight: 500; font-size: 12.5px; padding: 0 6px 6px; }
table.lm th:first-child { text-align: left; }
table.lm td { padding: 6px; border-top: 1px solid #1f242b; text-align: right; font-weight: 600; white-space: nowrap; }
table.lm td:first-child { text-align: left; font-weight: 500; color: #cfd3d8; white-space: normal; }
table.lm td small { display: block; color: var(--dim); font-size: 11.5px; font-weight: 400; }
.hear { display: flex; gap: 10px; padding: 7px 0; border-top: 1px solid #1f242b; font-size: 13.5px; }
.hear:first-of-type { border-top: 0; }
table.third { width: 100%; border-collapse: collapse; font-size: 13px; }
table.third th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 0 6px 6px; }
table.third td { padding: 5px 6px; border-top: 1px solid #1f242b; }
table.third td.f { font-weight: 700; white-space: nowrap; }
table.third td.d { text-align: right; font-weight: 700; white-space: nowrap; }
table.third tr.unrel td { opacity: .55; }
.scale { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: #cfd3d8; margin-top: 4px; }
.disclaimer { color: var(--dim); font-size: 12px; margin-top: 12px; line-height: 1.5; }
.footer { display: flex; justify-content: space-between; color: var(--dim); font-size: 12px; margin-top: 14px; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .report { padding: 16px 12px; border-radius: 0; border-left: 0; border-right: 0; }
  .rp-head { flex-direction: column; gap: 10px; }
  .rp-head-right { text-align: left; }
  .car-svg { display: none; }
  .logo-word { font-size: 32px; }
  .rp-track, .grid-main, .grid-bottom, .det-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr; }
  .kpi.score-card { grid-column: auto; grid-row: auto; }
  .score-parts { grid-template-columns: 1fr 1fr; }
  .reliab { grid-template-columns: 1fr; }
  .rl-items { grid-template-columns: 1fr 1fr; }
  .cover { width: 84px; height: 84px; }
  .itog { flex-direction: column; align-items: stretch; }
  .itog-r { justify-content: space-between; }
  .promo { flex-wrap: wrap; }
  .promo-url { width: 100%; padding-left: 34px; }
  table.bands td.rate { display: none; }
}

/* ---------- upload page ---------- */
.page { max-width: 880px; margin: 0 auto; padding: 24px 16px 40px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.hero h1 { font-size: 28px; margin: 0 0 8px; }
.hero p { color: #cfd3d8; margin: 0 0 22px; font-size: 15px; max-width: 640px; }
.steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.step-n { width: 44px; height: 44px; border-radius: 50%; background: #3a0b0f; border: 1px solid #8f1b21; color: #ff4b50; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p, .step li { color: #cfd3d8; }
.step ul { margin: 6px 0 0; padding-left: 18px; }
.step li { margin: 4px 0; }
.tracks { display: grid; gap: 10px; margin-top: 10px; }
.track-card { display: flex; gap: 14px; align-items: center; background: #171b21; border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; }
.track-card .cover { width: 56px; height: 56px; border-radius: 8px; }
.track-card .cover svg { width: 26px; height: 26px; }
.track-card .ti { flex: 1; min-width: 0; }
.track-card .ti b { display: block; font-size: 15px; }
.track-card .ti span { color: var(--muted); font-size: 13px; }
.form { display: grid; gap: 14px; margin-top: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input[type=text], .field select {
  width: 100%; height: 42px; border-radius: 9px; border: 1px solid var(--line2); background: #0f1216; color: var(--text);
  padding: 0 12px; font-size: 14px; outline: none;
}
.field input[type=text]:focus, .field select:focus { border-color: #8f1b21; }
.drop {
  border: 2px dashed #3a404b; border-radius: 12px; padding: 26px 16px; text-align: center; cursor: pointer;
  background: #0f1216; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--red); background: #160d0f; }
.drop svg { width: 38px; height: 38px; color: var(--red); }
.drop b { display: block; margin: 8px 0 4px; font-size: 15px; }
.drop span { color: var(--muted); font-size: 13px; }
.drop.has-file b { color: #fff; }
.progress { display: none; margin-top: 4px; }
.progress.show { display: block; }
.progress .bar { height: 8px; margin: 8px 0 6px; }
.progress .bar > i { width: 0; transition: width .2s; background: linear-gradient(90deg, #b8141b, #ff3b3f); }
.progress .bar.indeterminate > i { width: 35%; animation: ind 1.2s ease-in-out infinite; }
@keyframes ind { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.progress-text { color: #cfd3d8; font-size: 13px; }
.err { display: none; background: #2a0b0e; border: 1px solid #7a1a20; color: #ffb3b6; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.err.show { display: block; }
.banner { display: block; margin-top: 14px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: border-color .15s, transform .15s; }
.banner:hover { border-color: #8f1b21; transform: translateY(-1px); }
.banner img { display: block; width: 100%; height: auto; }
.recent { margin-top: 26px; }
.recent h3 { font-size: 16px; margin: 0 0 10px; }
.recent a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; margin-bottom: 8px; background: #11141a; font-size: 13.5px; }
.recent a:hover { border-color: var(--line2); }
.recent a b { color: #ff4b50; }
@media (max-width: 760px) {
  .form-row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; }
  .step-n { width: 36px; height: 36px; font-size: 15px; }
}

/* ---------- admin ---------- */
.page.admin { max-width: 1180px; }
.admin-login { max-width: 420px; }
.admin-login .form { padding: 22px; }
.admin-login h3 { margin: 0; }
.field input[type=password] {
  width: 100%; height: 42px; border-radius: 9px; border: 1px solid var(--line2); background: #0f1216; color: var(--text);
  padding: 0 12px; font-size: 14px; outline: none;
}
.field input[type=password]:focus { border-color: #8f1b21; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.admin-stats .card { display: flex; flex-direction: column; gap: 4px; }
.admin-stats span { color: var(--muted); font-size: 13px; }
.admin-stats b { font-size: 26px; }
.admin-search { display: flex; gap: 10px; margin-bottom: 14px; }
.admin-search .field { flex: 1; }
.admin-table-wrap { overflow-x: auto; padding: 6px 10px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 8px; white-space: nowrap; }
.admin-table td { padding: 8px; border-top: 1px solid #1f242b; }
.admin-table .r { text-align: right; }
.admin-table .nw { white-space: nowrap; }
.admin-table a { color: #ff4b50; text-decoration: none; }
.admin-table tr:hover td { background: #141820; }
.admin-table .rl { font-weight: 700; } .rl.ok { color: #3be36a; } .rl.warn { color: #f6c21c; } .rl.bad { color: #ff3b3f; }
.admin-pages { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; }
@media (max-width: 760px) {
  .admin-stats { grid-template-columns: 1fr 1fr 1fr; }
  .admin-stats b { font-size: 20px; }
}

/* ---------- турнирная таблица ---------- */
.page-head-r { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.field label .opt { color: var(--dim); font-weight: 400; }
.top-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.top-head h1 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 26px; }
.top-head h1 svg { width: 30px; height: 30px; color: #ff4b50; }
.top-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.top-track select { height: 38px; border-radius: 9px; border: 1px solid var(--line2); background: #0f1216; color: var(--text); padding: 0 10px; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 9px; overflow: hidden; }
.seg a { padding: 9px 14px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--muted); }
.seg a.on { background: linear-gradient(180deg, #f0323a, #c3141c); color: #fff; }
.top-table .c { text-align: center; width: 60px; }
.top-table .nick { font-weight: 700; }
.top-table .pts { font-size: 15px; }
.top-table small { color: var(--dim); }
.place { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; border-radius: 50%;
  font-weight: 800; background: #1c2027; color: #cfd3d8; }
.top-table tr.p1 .place { background: linear-gradient(180deg, #ffd75a, #c99a12); color: #2a1d00; }
.top-table tr.p2 .place { background: linear-gradient(180deg, #e6e9ee, #9aa1ab); color: #1a1d22; }
.top-table tr.p3 .place { background: linear-gradient(180deg, #e8a36a, #a5622c); color: #2a1300; }
.top-note { margin-top: 14px; text-align: center; }
.top-table .rl { font-weight: 700; }
.fmt { font-size: 11.5px; font-weight: 700; letter-spacing: .4px; padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line2); color: #cfd3d8; }
@media (max-width: 760px) { .top-head h1 { font-size: 21px; } }

/* группы в турнирной таблице и админке */
.top-table tbody.grp + tbody.grp tr:first-child td { border-top: 1px solid #262b33; }
.top-table tr.sub { display: none; }
.top-table tbody.open tr.sub { display: table-row; }
.top-table tr.sub td { background: #0f1217; color: #b8bec6; font-size: 13px; }
.top-table tr.sub .c { color: var(--dim); }
.more { margin-left: 8px; padding: 2px 8px; border-radius: 20px; border: 1px solid var(--line2); background: #1b1f26;
  color: #cfd3d8; font-size: 11.5px; font-weight: 600; cursor: pointer; vertical-align: 1px; }
.more:hover, tbody.open .more { border-color: #ff4b50; color: #fff; }
.admin-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.admin-hint { font-size: 12px; flex: 1 1 320px; }
.admin-msg { margin-bottom: 10px; padding: 9px 14px; border-radius: 9px; border: 1px solid #1f6b36; background: #0d2416; color: #9df0b5; font-size: 13.5px; }
.admin-table .c { text-align: center; width: 34px; }
.admin-table input[type=checkbox] { width: 16px; height: 16px; accent-color: #e5262e; cursor: pointer; }
.admin-table .mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.grp-tag { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 12px; font-weight: 600;
  color: hsl(var(--h) 80% 78%) !important; background: hsl(var(--h) 45% 16%); border: 1px solid hsl(var(--h) 50% 32%); }

/* переключатель языка (вне блоков экспорта PNG/PDF) */
.langbar { max-width: 880px; margin: 0 auto; padding: 10px 16px 0; display: flex; justify-content: flex-end; }
.langbar-in { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: #13161b; border: 1px solid var(--line); }
.langbar a { padding: 4px 11px; border-radius: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: .4px;
  color: var(--muted); text-decoration: none; }
.langbar a:hover { color: #fff; }
.langbar a.on { background: var(--red); color: #fff; }
/* китайский: у Inter/Exo 2 нет иероглифов — системные шрифты */
.lang-zh { font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif; }
.lang-zh h1, .lang-zh .hero h1 { letter-spacing: 0; }
.langbar:has(+ .page.admin) { max-width: 1180px; }
