:root {
  --bg: #0b0e14;
  --panel: #131826;
  --panel2: #1a2033;
  --line: #262f47;
  --text: #e8ecf4;
  --muted: #93a0b8;
  --accent: #ffb347;
  --accent2: #ff7847;
  --live: #ff4757;
  --ok: #2ed573;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  min-height: 100vh;
}
a { color: var(--accent); }
header {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #101527, #0b0e14);
}
header .logo { font-size: 26px; font-weight: 800; letter-spacing: 1px; }
header .logo span { color: var(--accent); }
header .tag { color: var(--muted); font-size: 14px; }
header nav { margin-left: auto; display: flex; gap: 10px; }
.btn {
  display: inline-block; padding: 9px 16px; border-radius: 8px;
  background: var(--panel2); color: var(--text); text-decoration: none;
  border: 1px solid var(--line); font-size: 14px; font-weight: 600;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent2); border-color: var(--accent2); color: #14100c; }
.btn.primary:hover { color: #14100c; opacity: .9; }
main { max-width: 1240px; margin: 0 auto; padding: 22px; }
.stage {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; margin-bottom: 22px;
}
.stage .bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); font-weight: 700;
}
.stage video { width: 100%; aspect-ratio: 16/9; background: #000; display: block; }
.stage .hint { color: var(--muted); font-weight: 400; font-size: 13px; }
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; cursor: pointer; transition: border-color .15s ease;
}
.card:hover { border-color: var(--accent); }
.card video { width: 100%; aspect-ratio: 16/9; background: #000; display: block; }
.card .meta {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
}
.card .name { font-weight: 700; font-size: 15px; }
.badge {
  margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: 1px;
  padding: 4px 9px; border-radius: 20px; border: 1px solid var(--line);
  color: var(--muted); white-space: nowrap;
}
.badge.live { color: #fff; background: var(--live); border-color: var(--live); }
.badge.live::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; margin-right: 6px; vertical-align: 1px;
  animation: pulse 1.2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.offline-msg {
  padding: 26px 14px; text-align: center; color: var(--muted); font-size: 14px;
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
}
footer {
  max-width: 1240px; margin: 0 auto; padding: 8px 22px 30px;
  color: var(--muted); font-size: 13px;
}
.doc h1 { font-size: 28px; margin-bottom: 6px; }
.doc h2 { font-size: 20px; margin: 26px 0 8px; color: var(--accent); }
.doc p, .doc li { color: #cfd7e6; line-height: 1.55; font-size: 15px; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .sub { color: var(--muted); margin-bottom: 10px; }
code, .mono {
  font-family: Consolas, "Courier New", monospace; background: #0a0d13;
  border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px;
  color: var(--accent); font-size: 14px; word-break: break-all;
}
.copybox {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin: 10px 0;
}
.copybox .mono { flex: 1; padding: 8px 10px; }
.tip {
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 8px; padding: 12px 14px; margin: 14px 0;
}
