:root {
  --bg: #050506;
  --bg-elev: #0c0d10;
  --bg-card: #101218;
  --line: #1c2230;
  --text: #e8edf5;
  --muted: #8b95a8;
  --cyan: #5ce1ff;
  --cyan-dim: #2a8aa3;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #9aefff; }
.top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #0a0c10 0%, var(--bg) 100%);
}
.brand {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted);
}
.brand strong { color: var(--cyan); font-weight: 600; }
.top h1 {
  margin: 0.15rem 0 0; font-size: 1.35rem; font-weight: 600; letter-spacing: 0.04em;
}
.top p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.88rem; }
.nav { display: flex; gap: 1rem; font-size: 0.85rem; color: var(--muted); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.75rem 4rem; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--cyan-dim); transform: translateY(-2px); }
.card .thumb {
  display: block; aspect-ratio: 16 / 9; background: #000;
  overflow: hidden;
}
.card .thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.card .body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.card h2 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.card .meta {
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.8rem;
  color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums;
}
.actions { display: flex; gap: 0.55rem; margin-top: auto; padding-top: 0.35rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.42rem 0.75rem; border-radius: 7px; font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--line); color: var(--text); background: #161a22;
}
.btn.primary { background: #12313a; border-color: #1e5e70; color: var(--cyan); }
.btn:hover { border-color: var(--cyan-dim); }
.foot { margin-top: 2.5rem; color: var(--muted); font-size: 0.78rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--cyan); }
.recon-top .title-block { min-width: 0; }
.stage {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 0;
  min-height: calc(100vh - 76px);
}
.panel {
  background: var(--bg-elev);
  border-right: 1px solid var(--line);
  padding: 1rem;
  display: flex; flex-direction: column; gap: 0.85rem;
}
.panel video {
  width: 100%; border-radius: 8px; background: #000; border: 1px solid var(--line);
}
.panel .bev {
  width: 100%; border-radius: 8px; background: #000; border: 1px solid var(--line);
  display: block;
}
.panel h2 { margin: 0; font-size: 0.95rem; }
.panel .hint { color: var(--muted); font-size: 0.78rem; line-height: 1.45; }
#view {
  position: relative; background: #000; min-height: 520px;
}
#view canvas { display: block; width: 100%; height: 100%; }
.hud {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  color: var(--muted); font-size: 0.75rem;
  background: rgba(0,0,0,0.55); padding: 0.4rem 0.6rem; border-radius: 6px;
  pointer-events: none;
}
.progress {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 3; text-align: center; color: var(--muted); font-size: 0.9rem;
}
.bar {
  width: 220px; height: 4px; background: #1a1f2a; border-radius: 4px; overflow: hidden; margin: 0.6rem auto 0;
}
.bar > i { display: block; height: 100%; width: 0; background: var(--cyan); }
.err { color: #ff8b8b; }
@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; min-height: 0; }
  .panel { border-right: 0; border-bottom: 1px solid var(--line); }
  #view { min-height: 70vh; }
  .top { flex-direction: column; }
}
