:root {
  --bg: #0a0b0d;
  --bg-2: #0f1114;
  --panel: #131519;
  --panel-2: #171a1f;
  --line: #24272d;
  --line-soft: #1b1e23;
  --ink: #f3f0ea;
  --ink-2: #a9adb6;
  --ink-3: #6b7078;
  --red: #ef4b32;
  --red-soft: rgba(239, 75, 50, 0.14);
  --blue: #4d8dff;
  --blue-soft: rgba(77, 141, 255, 0.14);
  --green: #35c07f;
  --amber: #e0a13a;
  --radius: 14px;
  --radius-sm: 9px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(1000px 600px at 12% -10%, rgba(239, 75, 50, 0.10), transparent 60%),
    radial-gradient(900px 500px at 88% 0%, rgba(77, 141, 255, 0.07), transparent 55%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(239, 75, 50, 0.35); }

/* ---------- layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px 96px; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 11, 13, 0.82);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.14em; font-size: 13px; text-transform: uppercase; }
.brand .mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ff7a5c, var(--red) 60%, #8c1f10);
  box-shadow: 0 0 18px rgba(239, 75, 50, 0.5);
}
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 7px 12px; border-radius: 8px; font-size: 13px; color: var(--ink-2);
  letter-spacing: 0.02em; transition: 0.15s;
}
.nav a:hover { color: var(--ink); background: var(--panel-2); }
.nav a.on { color: var(--ink); background: var(--panel-2); }
.who {
  margin-left: 4px; padding-left: 14px; border-left: 1px solid var(--line);
  font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 7px;
}
.who b { color: var(--ink); font-weight: 650; }
.who .av {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10px; font-weight: 800; background: rgba(239,75,50,.16); color: #ff8f7a;
  border: 1px solid rgba(239,75,50,.35);
}
.profile-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr 1fr; } .who { display: none; } }

.page-head { padding: 44px 0 26px; }
.page-head h1 { font-size: 34px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; font-weight: 780; }
.page-head p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.65; max-width: 640px; }
.eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3);
  font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--red); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--ink); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: 0.16s; white-space: nowrap;
}
.btn:hover { background: #20242a; border-color: #31353d; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.42; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--red); border-color: #ff5a3f; color: #fff; box-shadow: 0 8px 24px -12px rgba(239, 75, 50, 0.9); }
.btn-primary:hover { background: #ff5b40; border-color: #ff7059; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-danger { color: #ff8b76; border-color: rgba(239, 75, 50, 0.3); background: transparent; }
.btn-danger:hover { background: var(--red-soft); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.pad { padding: 22px; }
.pad-lg { padding: 28px; }

.section-title {
  display: flex; align-items: baseline; gap: 12px; margin: 38px 0 16px;
}
.section-title h2 { font-size: 15px; margin: 0; letter-spacing: 0.02em; font-weight: 700; }
.section-title .hint { font-size: 12px; color: var(--ink-3); }

/* ---------- chips / pills ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 650; letter-spacing: 0.04em; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--ink-2); white-space: nowrap;
}
.chip.red { color: #ff8f7a; border-color: rgba(239, 75, 50, 0.35); background: var(--red-soft); }
.chip.blue { color: #9cbaff; border-color: rgba(77, 141, 255, 0.35); background: var(--blue-soft); }
.chip.green { color: #6fdba8; border-color: rgba(53, 192, 127, 0.32); background: rgba(53, 192, 127, 0.12); }
.chip.amber { color: #f0bd6b; border-color: rgba(224, 161, 58, 0.34); background: rgba(224, 161, 58, 0.12); }
.chip.plain { background: transparent; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* actor colors */
.a-A { color: var(--blue); }
.a-B { color: var(--red); }
.bg-A { background: var(--blue); }
.bg-B { background: var(--red); }

/* ---------- home ---------- */
.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: end; }
.hero h1 { font-size: 58px; line-height: 1.02; margin: 0 0 20px; letter-spacing: -0.035em; font-weight: 790; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { color: var(--ink-2); font-size: 16px; line-height: 1.7; margin: 0 0 26px; max-width: 560px; }
.hero-side { border-left: 1px solid var(--line); padding-left: 28px; }
.hero-side .k { font-family: var(--mono); font-size: 34px; font-weight: 600; letter-spacing: -0.03em; }
.hero-side .l { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.hero-side > div + div { margin-top: 22px; }

.session-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.session-card { position: relative; overflow: hidden; transition: 0.18s; cursor: pointer; display: block; }
.session-card:hover { border-color: #34383f; transform: translateY(-2px); }
.session-card .thumb {
  height: 104px; background: #0b0c0f center/cover no-repeat;
  border-bottom: 1px solid var(--line-soft); position: relative;
  filter: saturate(0.6) brightness(0.8);
}
.session-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(10, 11, 13, 0.9));
}
.session-card .score-badge {
  position: absolute; right: 14px; bottom: -18px; z-index: 2;
  font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  background: var(--panel); border: 1px solid var(--line); padding: 7px 12px; border-radius: 10px;
}
.session-card .body { padding: 18px; }
.session-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.session-card .meta { font-size: 12px; color: var(--ink-3); display: flex; gap: 10px; flex-wrap: wrap; }
.session-card .verdict { margin-top: 14px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.badge-demo {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  background: rgba(224, 161, 58, 0.16); color: #f0bd6b; border: 1px solid rgba(224, 161, 58, 0.4);
  padding: 3px 8px; border-radius: 5px;
}

/* ---------- stepper ---------- */
.stepper { display: flex; gap: 0; margin: 26px 0 30px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper .step {
  flex: 1; padding: 14px 18px; font-size: 12.5px; color: var(--ink-3);
  display: flex; align-items: center; gap: 10px; border-right: 1px solid var(--line); background: var(--bg-2);
}
.stepper .step:last-child { border-right: none; }
.stepper .step .n {
  width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px; flex: none;
}
.stepper .step.on { color: var(--ink); background: var(--panel); }
.stepper .step.on .n { background: var(--red); border-color: var(--red); color: #fff; }
.stepper .step.done .n { background: rgba(53, 192, 127, 0.2); border-color: rgba(53, 192, 127, 0.5); color: #6fdba8; }

/* ---------- checklist ---------- */
.checklist { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.check-row {
  display: flex; gap: 14px; padding: 13px 16px; background: var(--bg-2); cursor: pointer; transition: 0.14s;
  align-items: flex-start;
}
.check-row:hover { background: var(--panel); }
.check-row input {
  appearance: none; -webkit-appearance: none; margin: 2px 0 0; width: 17px; height: 17px; flex: none;
  border-radius: 5px; border: 1.5px solid #383d46; background: #101215; cursor: pointer;
  position: relative; transition: 0.14s;
}
.check-row input:hover { border-color: #4d545f; }
.check-row input:checked { background: var(--red); border-color: var(--red); }
.check-row input:checked::after {
  content: ""; position: absolute; left: 5px; top: 1.5px; width: 4px; height: 8.5px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.check-row .t { font-size: 13px; font-weight: 600; }
.check-row .d { font-size: 12px; color: var(--ink-3); margin-top: 2px; line-height: 1.5; }
.check-row.on { background: var(--panel); }

/* ---------- dropzone ---------- */
.dropzone {
  border: 1.5px dashed #2c3038; border-radius: 14px; padding: 40px 24px; text-align: center;
  transition: 0.16s; cursor: pointer; background: rgba(255, 255, 255, 0.012);
}
.dropzone:hover, .dropzone.drag { border-color: var(--red); background: var(--red-soft); }
.dropzone .big { font-size: 15px; font-weight: 650; margin-bottom: 6px; }
.dropzone .sub { font-size: 12.5px; color: var(--ink-3); }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field .lab { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 7px; display: block; }
.input, select.input {
  width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--ink); font-size: 13.5px; font-family: inherit; outline: none;
}
.input:focus { border-color: #3b4250; box-shadow: 0 0 0 3px rgba(77, 141, 255, 0.12); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ---------- timecode table ---------- */
.tc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tc-table th {
  text-align: left; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; padding: 0 10px 10px; border-bottom: 1px solid var(--line);
}
.tc-table td { padding: 10px; border-bottom: 1px solid var(--line-soft); }
.tc-table tr:last-child td { border-bottom: none; }
.tc-input { width: 92px; padding: 7px 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-family: var(--mono); font-size: 13px; }
.tc-input.bad { border-color: rgba(239, 75, 50, 0.6); }
.verify-note { font-size: 11.5px; color: var(--ink-3); }

/* ---------- processing ---------- */
.proc { display: grid; gap: 12px; }
.proc-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); }
.proc-row .bullet { width: 8px; height: 8px; border-radius: 50%; background: #2a2d33; flex: none; }
.proc-row.on { color: var(--ink); }
.proc-row.on .bullet { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); animation: pulse 1.2s infinite; }
.proc-row.done { color: var(--ink-2); }
.proc-row.done .bullet { background: var(--green); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(239, 75, 50, 0.06); } }
.bar-track { height: 4px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--red), #ff8b6f); border-radius: 999px; transition: width 0.4s; }

/* ---------- verdict ---------- */
.verdict-card {
  border-radius: var(--radius); border: 1px solid var(--line); padding: 26px;
  background: linear-gradient(120deg, rgba(239, 75, 50, 0.10), transparent 45%), var(--panel);
  position: relative; overflow: hidden;
}
.verdict-card .label { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); font-weight: 800; }
.verdict-card h2 { margin: 10px 0 12px; font-size: 26px; letter-spacing: -0.02em; line-height: 1.25; font-weight: 750; }
.verdict-card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.verdict-card li { font-size: 13px; color: var(--ink-2); line-height: 1.6; padding-left: 16px; position: relative; }
.verdict-card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.verdict-card li.disclaimer { color: var(--ink-3); font-size: 11.5px; }
.verdict-card .stamp {
  position: absolute; right: 22px; top: 22px; font-size: 10px; letter-spacing: 0.16em;
  border: 1px solid rgba(239, 75, 50, 0.4); color: #ff8f7a; padding: 5px 9px; border-radius: 6px;
  text-transform: uppercase; font-weight: 700; transform: rotate(-2deg);
}

/* ---------- scorecard ---------- */
.scorecard { width: 100%; border-collapse: collapse; }
.scorecard th {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
  font-weight: 700; padding: 0 12px 12px; text-align: left;
}
.scorecard th.num, .scorecard td.num { text-align: right; font-family: var(--mono); }
.scorecard td { padding: 14px 12px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.scorecard .round-no { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.scorecard .pts { font-family: var(--mono); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.scorecard .pts.win { color: var(--green); }
.scorecard .pts.loss { color: var(--ink-3); }
.scorecard tfoot td { border-top: 1px solid var(--line); padding-top: 16px; font-weight: 700; }
.scorecard tfoot .pts { font-size: 26px; }
.dimbars { display: grid; gap: 5px; min-width: 210px; }
.dimbar { display: grid; grid-template-columns: 66px 1fr; gap: 8px; align-items: center; }
.dimbar .k { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.split { height: 5px; border-radius: 999px; overflow: hidden; display: flex; background: var(--line-soft); }
.split i { display: block; height: 100%; }
.split i.l { background: var(--blue); }
.split i.r { background: var(--red); }
/* 中轴对称条：从中间向两侧伸，一眼看出这一维谁领先 */
.split2 { position: relative; height: 6px; border-radius: 999px; background: #16191d; display: block; }
.split2::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: #3a3f47; }
.split2 i { position: absolute; top: 0; height: 100%; display: block; }
.split2 i.l { right: 50%; background: linear-gradient(270deg, var(--blue), rgba(77,141,255,0.55)); border-radius: 999px 0 0 999px; }
.split2 i.r { left: 50%; background: linear-gradient(90deg, var(--red), rgba(239,75,50,0.55)); border-radius: 0 999px 999px 0; }
.split2 i.zero { opacity: 0; }
.insufficient-tag { font-size: 10px; color: var(--amber); letter-spacing: 0.08em; }

/* ---------- stats grid ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--bg-2); }
.stat .k { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.stat .v { font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; margin-top: 8px; line-height: 1; }
.stat .v small { font-size: 13px; color: var(--ink-3); font-weight: 500; margin-left: 3px; }
.stat .d { font-size: 11.5px; margin-top: 7px; color: var(--ink-3); display: flex; gap: 5px; align-items: center; }
.stat .d.up { color: var(--green); }
.stat .d.down { color: var(--red); }
.stat .cmp { font-size: 10.5px; color: var(--ink-3); margin-top: 10px; border-top: 1px dashed var(--line-soft); padding-top: 8px; }

/* ---------- timeline ---------- */
.timeline-wrap { position: relative; }
.tl-round-band { display: flex; gap: 8px; margin-bottom: 8px; }
.tl-round-band .b { flex: 1; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.08em; }
.tl-track {
  position: relative; height: 54px; border-radius: 8px; background: var(--bg);
  border: 1px solid var(--line); overflow: hidden;
}
.tl-tick { position: absolute; bottom: 6px; width: 2px; border-radius: 2px; }
.tl-tick.A { background: var(--blue); }
.tl-tick.B { background: var(--red); }
.tl-tick.judgment { background: var(--amber); bottom: 0; height: 100% !important; width: 1px; opacity: 0.75; }
.tl-tick.landed { height: 26px; }
.tl-tick.miss { height: 12px; opacity: 0.45; }
.tl-grid { position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 10%); opacity: 0.55; }
.tl-gap { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,0.055) 0 3px, transparent 3px 7px); border-left: 1px solid rgba(255,255,255,0.06); border-right: 1px solid rgba(255,255,255,0.06); }
.tl-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 11px; color: var(--ink-3); }
.tl-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

/* ---------- heatmap ---------- */
.heat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.heat-box { text-align: center; }
.heat-box h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.heat-svg { width: 100%; max-width: 190px; height: auto; }
.zone-cell { transition: 0.15s; }
.heat-legend { display: flex; justify-content: center; gap: 12px; font-size: 11px; color: var(--ink-3); margin-top: 8px; }

/* ---------- event list ---------- */
.ev-list { display: grid; gap: 6px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.ev-list::-webkit-scrollbar { width: 8px; }
.ev-list::-webkit-scrollbar-thumb { background: #24272d; border-radius: 4px; }
.ev-row {
  display: grid; grid-template-columns: 52px 26px 118px 118px 1fr 40px 70px; gap: 10px; align-items: center;
  padding: 9px 12px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--bg-2);
  font-size: 12.5px; transition: 0.12s;
}
.ev-row:hover { border-color: #333842; background: var(--panel); }
.ev-row.low { border-color: rgba(224, 161, 58, 0.28); background: rgba(224, 161, 58, 0.05); }
.ev-row.manual { border-color: rgba(77, 141, 255, 0.3); }
.ev-time { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.ev-actor { font-size: 9.5px; font-weight: 800; letter-spacing: 0; text-align: center; border-radius: 4px; padding: 3px 0; white-space: nowrap; }
.ev-actor.A { color: #9cbaff; background: var(--blue-soft); }
.ev-actor.B { color: #ff8f7a; background: var(--red-soft); }
.ev-sel { width: 100%; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 12px; appearance: none; }
.conf-pill { font-family: var(--mono); font-size: 10.5px; padding: 3px 7px; border-radius: 5px; text-align: center; background: var(--line-soft); color: var(--ink-3); }
.conf-pill.low { background: rgba(224, 161, 58, 0.14); color: #f0bd6b; }
.ev-actions { display: flex; gap: 6px; justify-content: flex-end; }
.icon-btn {
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px;
  border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-size: 12px; color: var(--ink-2);
}
.icon-btn:hover { border-color: #3a4049; color: var(--ink); }
.icon-btn.del:hover { border-color: rgba(239, 75, 50, 0.5); color: #ff8b76; background: var(--red-soft); }

/* ---------- calibrate layout ---------- */
.cal-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.video-box { background: #000; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.video-box video { width: 100%; display: block; max-height: 64vh; object-fit: contain; background: #000; }
.transport { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--panel); }
.transport .time { font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin-left: auto; }
.round-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.round-tab { padding: 6px 13px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); font-size: 12px; cursor: pointer; color: var(--ink-2); font-family: var(--mono); }
.round-tab.on { background: var(--red-soft); border-color: rgba(239, 75, 50, 0.45); color: #ff9a86; }

/* ---------- reel ---------- */
.reel-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.reel-stage {
  position: relative; width: 100%; aspect-ratio: 9 / 16; background: #000 center/cover no-repeat;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
}
/* 竖版容器里放横向素材：背景用同一帧放大虚化，前景完整画面，不做硬裁切 */
.reel-stage::before {
  content: ""; position: absolute; inset: -30px;
  background: inherit; background-size: cover; background-position: center;
  filter: blur(28px) brightness(0.55) saturate(0.85);
  z-index: 0;
}
.reel-stage video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1;
}
.reel-overlay { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; }
.reel-top { display: flex; justify-content: space-between; align-items: flex-start; }
.reel-caption {
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  margin: 0 -16px -16px; padding: 40px 16px 16px;
}
.reel-caption .rl { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #ffb4a3; font-weight: 800; margin-bottom: 6px; }
.reel-caption .ct { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.reel-caption .clock { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 4px; }
.reel-dots { display: flex; gap: 5px; }
.reel-dots i { width: 18px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.25); }
.reel-dots i.on { background: var(--red); }
.clip-list { display: grid; gap: 8px; }
.clip-item {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg-2); cursor: pointer; transition: 0.14s;
}
.clip-item:hover { border-color: #343a44; background: var(--panel); }
.clip-item.on { border-color: rgba(239, 75, 50, 0.5); background: rgba(239, 75, 50, 0.07); }
.clip-item .idx { font-family: var(--mono); font-size: 11px; color: var(--ink-3); width: 18px; }
.clip-item .txt { flex: 1; min-width: 0; }
.clip-item .txt .t1 { font-size: 13px; font-weight: 600; }
.clip-item .txt .t2 { font-size: 11px; color: var(--ink-3); margin-top: 2px; font-family: var(--mono); }
.clip-item .del { opacity: 0; transition: 0.14s; }
.clip-item:hover .del { opacity: 1; }

/* ---------- share ---------- */
.share-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.consent-box {
  border: 1px solid rgba(224, 161, 58, 0.3); background: rgba(224, 161, 58, 0.06);
  border-radius: 12px; padding: 18px;
}
.consent-box h3 { margin: 0 0 8px; font-size: 14px; color: #f0bd6b; }
.consent-box p { margin: 0 0 14px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line-soft); gap: 18px; }
.switch-row:last-child { border-bottom: none; }
.switch-row .t { font-size: 13px; font-weight: 600; }
.switch-row .d { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.5; }
.toggle { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #2a2e35; border: 1px solid var(--line); cursor: pointer; flex: none; transition: 0.18s; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #8b919b; transition: 0.18s; }
.toggle.on { background: rgba(239, 75, 50, 0.3); border-color: rgba(239, 75, 50, 0.5); }
.toggle.on::after { left: 21px; background: var(--red); }
.toggle.disabled { opacity: 0.4; cursor: not-allowed; }
.link-box { display: flex; gap: 8px; margin-top: 14px; }
.link-box input { flex: 1; font-family: var(--mono); font-size: 12px; }

/* ---------- misc ---------- */
.empty { text-align: center; padding: 64px 24px; border: 1px dashed var(--line); border-radius: 14px; color: var(--ink-3); }
.empty .big { font-size: 16px; color: var(--ink-2); margin-bottom: 8px; font-weight: 600; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(12px);
  background: #1c2026; border: 1px solid #333842; padding: 11px 18px; border-radius: 10px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: 0.22s; z-index: 200;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5); max-width: 82vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: rgba(239, 75, 50, 0.5); color: #ffb0a0; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.divider { height: 1px; background: var(--line-soft); margin: 20px 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.stack { display: grid; gap: 8px; }
.notice {
  border: 1px solid rgba(224, 161, 58, 0.28); background: rgba(224, 161, 58, 0.06);
  border-radius: 10px; padding: 12px 15px; font-size: 12.5px; color: #e6c58c; line-height: 1.6;
}
.notice b { color: #f0bd6b; }
.loading { display: grid; place-items: center; padding: 80px; color: var(--ink-3); font-size: 13px; }
.spin { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: spin 0.8s linear infinite; margin-right: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs a { padding: 11px 16px; font-size: 13px; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink-2); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--red); }

.kv { display: grid; grid-template-columns: 88px 1fr; gap: 8px 14px; font-size: 12.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; color: var(--ink-2); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 28px; }
  .hero h1 { font-size: 40px; }
  .hero-side { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; display: flex; gap: 28px; }
  .hero-side > div + div { margin-top: 0; }
  .cal-grid, .reel-grid, .share-grid, .heat-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .ev-row { grid-template-columns: 46px 26px 1fr 1fr; row-gap: 6px; }
  .ev-row .conf-pill, .ev-row .ev-actions { grid-column: span 2; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .stepper { flex-direction: column; }
  .stepper .step { border-right: none; border-bottom: 1px solid var(--line); }
  .wrap { padding: 0 16px 72px; }
}

/* ---------- 校准编辑器：视频在左，待校准列表在右 ---------- */
.cal-editor .video-box video { max-height: 50vh; }
.cal-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 452px;
  gap: 20px;
  align-items: start;
}
.cal-side {
  position: sticky;
  top: 74px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 240px);
}
.ev-list.editor {
  flex: 1;
  min-height: 180px;
  max-height: none;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  padding: 8px;
}
.ev-list.editor .ev-row { grid-template-columns: 44px 28px 1fr 1fr 30px 54px; gap: 7px; padding: 8px 8px; }
.ev-list.editor .ev-sel { padding: 5px 6px; font-size: 11.5px; }
.ev-list.editor .icon-btn { width: 23px; height: 23px; font-size: 11px; }
.ev-row.sel {
  border-color: rgba(239, 75, 50, 0.75) !important;
  background: rgba(239, 75, 50, 0.12) !important;
  box-shadow: inset 2px 0 0 var(--red);
}
.metric-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.metric-mini {
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 9px; background: var(--bg-2);
}
.metric-mini .k { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.metric-mini .v { font-family: var(--mono); font-size: 15px; font-weight: 600; margin-top: 4px; letter-spacing: -0.02em; }
.shortcut-bar { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11px; color: var(--ink-3); line-height: 1.8; }
kbd {
  font-family: var(--mono); font-size: 10px; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 4px; padding: 0 5px; color: var(--ink-2); background: #16181c; margin-right: 2px;
}
@media (max-width: 1180px) {
  .cal-editor { grid-template-columns: 1fr; }
  .cal-side { position: static; max-height: none; }
  .ev-list.editor { max-height: 420px; }
}
@media (max-width: 640px) {
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 完成确认弹窗 ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(6px); padding: 20px;
}
.modal {
  width: min(440px, 100%); background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
}
.done-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 4px;
}
.done-stats > div {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--bg);
  display: flex; flex-direction: column; gap: 4px;
}
.done-stats .k { font-size: 10px; letter-spacing: 0.08em; color: var(--ink-3); }
.done-stats .v { font-family: var(--mono); font-size: 20px; font-weight: 600; }

/* 可点击的归属标签 */
.ev-actor {
  border: 1px solid transparent; cursor: pointer; transition: 0.12s; font-family: inherit;
}
.ev-actor:hover { border-color: currentColor; opacity: 0.85; }
.ev-actor:active { transform: scale(0.94); }

/* 已完成的场次徽标 */
.chip.done { color: #6fdba8; border-color: rgba(53, 192, 127, 0.45); background: rgba(53, 192, 127, 0.12); }

/* 校准页：当前事件信息条 */
.focus-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
  transition: 0.15s;
}
.focus-bar.stopped { border-color: rgba(53, 192, 127, 0.45); background: rgba(53, 192, 127, 0.06); }
.focus-time {
  font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: #f3f0ea;
  padding: 1px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.06);
}
#track .tl-tick.sel { outline: 2px solid #fff; outline-offset: 1px; z-index: 3; width: 3px; }

/* 档位：自动通过 / 待确认 */
.tier-banner{font-size:12.5px;line-height:1.6;color:var(--ink2,#a9adb6);background:#12161a;border:1px solid var(--line,#262a30);
  border-radius:9px;padding:9px 11px;margin-bottom:12px}
.tier-banner b{color:#fff}
.ev-time{display:flex;flex-direction:column;gap:2px;align-items:flex-start}
.tier{font-style:normal;font-size:9.5px;line-height:1;padding:2px 4px;border-radius:3px;letter-spacing:.02em}
.tier.ok{color:#6fdba8;background:rgba(53,192,127,.12);border:1px solid rgba(53,192,127,.3)}
.tier.rv{color:#f0bd6b;background:rgba(224,161,58,.12);border:1px solid rgba(224,161,58,.32)}

/* 游客模式常驻提示 */
.guest-chip{display:none;font-size:11.5px;line-height:1;padding:6px 9px;border-radius:999px;
  color:#f0bd6b;background:rgba(224,161,58,.10);border:1px solid rgba(224,161,58,.32);
  text-decoration:none;white-space:nowrap}
.guest-chip:hover{background:rgba(224,161,58,.18)}

/* 卡片比分的小标签：避免"10 : 8"孤立难懂 */
.card-scorelabel{position:absolute;left:14px;top:12px;z-index:2;font-size:10.5px;letter-spacing:.14em;
  color:rgba(243,240,234,.66);text-transform:uppercase}

/* 顶栏：档案 vs 登录 */
.who-tag{font-size:9.5px;line-height:1;padding:2px 5px;border-radius:4px;margin-left:6px;
  color:#8f96a0;border:1px solid #2e353d;vertical-align:middle}
.login-link{font-size:12.5px;color:var(--ink-3,#70757d);text-decoration:none;padding:6px 10px;
  border-radius:8px;border:1px solid var(--line,#262a30)}
.login-link:hover{color:var(--ink,#f4f1eb);border-color:#3a424c}

/* ---------- 手机适配 ---------- */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; }
  .topbar-in { padding: 0 14px; gap: 10px; height: 54px; }
  .brand { font-size: 15px; }
  .nav { gap: 2px; }
  .nav a { padding: 6px 8px; font-size: 12.5px; white-space: nowrap; }
  .login-link { padding: 5px 8px; font-size: 12px; }
  main, .wrap { padding-left: 14px; padding-right: 14px; }
  .hero h1 { font-size: 30px; }
  .section-title h2 { font-size: 15px; }
  .stats, .metric-strip { grid-template-columns: repeat(2, 1fr) !important; }
  .profile-grid { grid-template-columns: 1fr !important; }
  .card.pad { padding: 14px; }
  /* 宽表格改成横向滑动，别把整页撑破 */
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .table-scroll .scorecard { min-width: 540px; }
  .card { max-width: 100%; }
  .tc-table { min-width: 420px; }
  .verdict-card h2 { font-size: 20px; }
  .verdict-card .stamp { display: none; }
}
