/* ===== 视频解析页（/video）===== */
.vp-hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 26px 24px 22px; color: #fff;
  background: linear-gradient(120deg, #0ea5e9 0%, #1d4ed8 45%, #6d28d9 100%);
  box-shadow: 0 14px 34px rgba(29, 78, 216, .26); margin-bottom: 18px;
}
.vp-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 70%);
}
.vp-hero .row { position: relative; display: flex; align-items: flex-start; gap: 14px; }
.vp-hero .big-ic {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.16);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.vp-hero h1 { font-size: 21px; margin: 0 0 4px; letter-spacing: .3px; }
.vp-hero .bd { font-size: 12.5px; opacity: .93; line-height: 1.7; }
.vp-hero .bd b { color: #fef08a; font-weight: 600; }
.vp-note {
  position: relative; margin-top: 14px; font-size: 12px; line-height: 1.7;
  background: rgba(255,255,255,.14); border-radius: 12px; padding: 9px 13px;
}
.vp-note b { color: #fef08a; }

.vp-card { background: var(--card); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.vp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.vp-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; color: #fff; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(99, 102, 241, .3);
}
.vp-title { font-size: 15px; font-weight: 700; }
.vp-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
#vinput {
  width: 100%; box-sizing: border-box; min-height: 108px; resize: vertical; padding: 12px 14px;
  font-size: 13.5px; line-height: 1.7; font-family: inherit;
  border: 1px solid var(--border); border-radius: 12px; background: #f8fafc; color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
#vinput:focus { outline: none; border-color: #0ea5e9; background: #fff; box-shadow: 0 0 0 3px rgba(14, 165, 233, .12); }
.btn-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.vp-btn-main {
  border: none; cursor: pointer; padding: 11px 22px; border-radius: 12px; font-size: 14.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #6366f1); box-shadow: 0 6px 16px rgba(14, 165, 233, .3);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.vp-btn-main:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(14, 165, 233, .36); filter: brightness(1.05); }
.vp-btn-main:disabled { opacity: .6; cursor: not-allowed; }
.vp-btn-line {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: #fff; color: #334155;
  cursor: pointer; padding: 9px 15px; border-radius: 11px; font-size: 13px; font-weight: 600; transition: all .12s;
}
.vp-btn-line:hover:not(:disabled) { border-color: #0ea5e9; color: #0369a1; background: #f0f9ff; }
.vp-btn-line:disabled { opacity: .55; cursor: not-allowed; }
.vp-err { background: #fee2e2; border: 1px solid #fca5a5; color: #b91c1c; border-radius: 12px; padding: 12px 14px; margin-top: 12px; font-size: 13px; line-height: 1.7; }
.hidden { display: none; }

.vp-info { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.vp-thumb {
  width: 168px; aspect-ratio: 16 / 9; border-radius: 12px; background: #eef2f7 center/cover no-repeat;
  flex-shrink: 0; border: 1px solid var(--border);
}
.vp-meta { flex: 1; min-width: 220px; }
.vp-vtitle { font-size: 15px; font-weight: 700; line-height: 1.5; margin-bottom: 6px; }
.vp-line { font-size: 12.5px; color: var(--muted); line-height: 1.75; }

.trk { border: 1px solid var(--border); border-radius: 12px; padding: 12px 13px; margin-top: 10px; background: #fbfdff; }
.trk-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trk-label { font-size: 13.5px; font-weight: 700; }
.trk-size { font-size: 11.5px; color: var(--muted); }
.trk-note { font-size: 11.5px; color: #b45309; margin-top: 4px; }
.trk-url {
  margin-top: 7px; font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; color: #475569;
  word-break: break-all; background: #f1f5f9; border-radius: 8px; padding: 7px 9px; max-height: 62px; overflow: auto;
}
.trk-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.vp-player video { width: 100%; max-height: 62vh; border-radius: 12px; background: #000; display: block; }
.vp-player { margin-top: 14px; }

.vp-faq { margin: 0; padding-left: 20px; }
.vp-faq li { font-size: 12.5px; color: #334155; line-height: 1.85; margin-bottom: 7px; }
.vp-faq code { font-family: ui-monospace, Consolas, monospace; background: #f1f5f9; padding: 1px 5px; border-radius: 5px; font-size: 11.5px; }
.vp-line code { font-family: ui-monospace, Consolas, monospace; background: #f1f5f9; padding: 1px 5px; border-radius: 5px; font-size: 11.5px; }

/* 视频号「已抓取」列表 */
.hist-item {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 9px; background: #fbfdff;
}
.hist-item .hmain { flex: 1; min-width: 180px; }
.hist-item .hnames { font-size: 13.5px; font-weight: 600; word-break: break-all; }
.hist-item .hmeta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.gal-chip { flex-shrink: 0; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 9px; }
.gal-chip.ok { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.gal-chip.bad { background: #fef3c7; color: #b45309; border: 1px solid #fcd34d; }
.btn-ic {
  border: 1px solid var(--border); background: #fff; cursor: pointer; border-radius: 10px;
  padding: 7px 10px; font-size: 13px; line-height: 1; transition: all .12s;
}
.btn-ic:hover { border-color: #ef4444; background: #fef2f2; }
.empty-hint { font-size: 12.5px; color: var(--muted); padding: 10px 2px; }

/* 高清合并区（默认不合并，点按钮才动） */
.vp-merge {
  margin: 12px 0 14px; padding: 13px 15px;
  border: 1px solid #c7d2fe; border-radius: 14px;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
}
.vp-merge .mg-h { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: #3730a3; }
.vp-merge .mg-ic { font-size: 17px; }
.vp-merge .mg-note { font-size: 12.5px; color: #475569; line-height: 1.75; margin: 6px 0 10px; }
.vp-merge .mg-state { font-size: 12.5px; color: #b45309; font-weight: 600; margin-top: 8px; }
.vp-merge .mg-state:empty { display: none; }
.vp-merge .btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.vp-merge .vp-btn-main:disabled, .vp-merge .vp-btn-line:disabled { opacity: .55; cursor: not-allowed; }
.vp-merge a.vp-btn-line { text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }

/* 转存结果 */
.trk-save, .save-box { margin-top: 9px; }
.save-ok {
  background: #dcfce7; border: 1px solid #86efac; color: #15803d;
  border-radius: 10px; padding: 8px 11px; font-size: 12.5px; font-weight: 700;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
}
.save-ok .save-meta { font-weight: 400; color: #166534; font-size: 11.5px; }
.save-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.save-row .save-k { font-size: 11.5px; color: var(--muted); min-width: 52px; }
.save-row code {
  font-family: ui-monospace, Consolas, monospace; font-size: 11.5px;
  background: #f1f5f9; border-radius: 6px; padding: 3px 7px; word-break: break-all;
}
.save-row a.vp-btn-line { text-decoration: none; display: inline-flex; align-items: center; }

@media (max-width: 560px) {
  .vp-thumb { width: 100%; }
}
