:root {
  --bg: #090d18;
  --panel: rgba(19, 27, 49, .72);
  --panel-solid: #131b31;
  --line: rgba(185, 204, 255, .13);
  --muted: #8995b3;
  --text: #eff3ff;
  --accent: #9c7cff;
  --accent-2: #5ee7d4;
  --danger: #ff8b9d;
  --shadow: 0 24px 70px rgba(0, 0, 0, .3);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
.ambient { position: fixed; border-radius: 999px; filter: blur(70px); pointer-events: none; opacity: .2; }
.ambient-one { width: 320px; height: 320px; top: 6%; left: -80px; background: #7657ff; }
.ambient-two { width: 280px; height: 280px; right: -100px; top: 35%; background: #16b7a4; }
.shell { width: min(1120px, calc(100% - 44px)); margin: 0 auto; position: relative; }
.topbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: #fff; font-weight: 850; font-size: 19px; background: linear-gradient(135deg, #a987ff, #51d9cf); box-shadow: 0 8px 24px rgba(117, 117, 255, .3); }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-size: 15px; letter-spacing: .2px; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.status-pill { display: flex; align-items: center; gap: 8px; color: #b2f5e8; font-size: 12px; padding: 8px 12px; border: 1px solid rgba(94, 231, 212, .2); border-radius: 999px; background: rgba(38, 109, 107, .15); }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 13px var(--accent-2); }
.hero { text-align: center; padding: 18px 0 14px; }
.eyebrow, .section-kicker { color: #ad9aff; font-size: 11px; font-weight: 750; letter-spacing: .18em; }
.hero-copy { max-width: 590px; margin: 0 auto 16px; color: var(--muted); font-size: 14px; }
.resolver-form { display: flex; gap: 10px; max-width: 780px; margin: 0 auto; padding: 7px; border: 1px solid rgba(195, 204, 255, .2); border-radius: 18px; background: rgba(16, 23, 43, .86); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.05); }
.input-wrap { display: flex; align-items: center; flex: 1; min-width: 0; }
.link-icon { width: 40px; color: #a391ff; font-size: 24px; transform: rotate(-45deg); }
.input-wrap input { width: 100%; min-width: 0; padding: 14px 8px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 15px; }
.input-wrap input::placeholder { color: #66728e; }
.clear-btn { margin-right: 7px; width: 28px; height: 28px; border: 0; border-radius: 50%; color: #aab4ca; background: rgba(255,255,255,.08); font-size: 20px; cursor: pointer; }
.primary-btn { display: flex; align-items: center; gap: 22px; padding: 0 19px 0 22px; border: 0; border-radius: 13px; color: #101127; background: linear-gradient(120deg, #b09aff, #73e4d4); font-weight: 800; cursor: pointer; transition: transform .2s, filter .2s; }
.primary-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.primary-btn:disabled { cursor: wait; opacity: .7; }
.primary-btn b { font-size: 22px; font-weight: 500; }
.primary-btn.loading b { animation: pulse .9s infinite; }
.skill-download { display: flex; align-items: center; justify-content: center; gap: 14px; width: fit-content; max-width: 100%; margin: 10px auto 0; padding: 8px 12px; border: 1px solid rgba(195, 204, 255, .13); border-radius: 10px; background: rgba(16, 23, 43, .55); }
.skill-download code { color: #aeb9d2; font-size: 11px; white-space: nowrap; }
.skill-download a { color: #b6a5ff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.hint-row { display: flex; justify-content: space-between; max-width: 760px; margin: 12px auto 0; padding: 0 8px; color: #68758f; font-size: 12px; }
.text-btn { padding: 0; border: 0; color: #a99cff; background: transparent; cursor: pointer; font-size: 12px; }
.status-message { min-height: 25px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.status-message.success { color: #8ff1df; }
.status-message.error { color: var(--danger); }
.status-message.loading { color: #c4b8ff; }
.result-section { padding: 8px 0 14px; animation: rise .45s ease both; }
.result-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 10px; }
.result-heading h2 { margin: 5px 0 0; font-size: 28px; letter-spacing: -.04em; }
.muted-label { color: var(--muted); font-size: 12px; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.video-panel { overflow: hidden; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #070a12; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; }
.video-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #a1abc2; background: radial-gradient(circle at 50% 20%, rgba(156,124,255,.18), transparent 50%), #0b1020; }
.video-empty span { margin: 0 auto 10px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #a987ff, #55d9ca); font-size: 21px; }
.video-empty p { margin: 0; font-weight: 650; }
.video-empty small { color: var(--muted); font-weight: 400; }
.video-actions { display: flex; gap: 10px; padding: 17px 18px 0; }
.download-btn { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 12px 15px; border-radius: 11px; color: #14152b; background: #a895ff; font-size: 13px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.download-btn small { font-size: 10px; font-weight: 600; opacity: .68; }
.download-btn.secondary { color: #baf6ee; background: rgba(94, 231, 212, .12); border: 1px solid rgba(94,231,212,.22); }
.download-btn[hidden] { display: none; }
.expiry-note { padding: 0 18px 17px; color: #68758f; font-size: 11px; }
.info-panel { padding: 23px; }
.author-row { display: flex; align-items: center; gap: 12px; }
.author-icon, .avatar-fallback { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { display: grid; place-items: center; color: #201833; background: linear-gradient(135deg, #c3b2ff, #65e2d3); font-weight: 850; font-size: 18px; }
.author-name { font-weight: 750; }
.author-sub { margin-top: 3px; color: var(--muted); font-size: 12px; }
.divider { height: 1px; margin: 21px 0; background: var(--line); }
.description { min-height: 135px; white-space: pre-wrap; color: #c0c8da; font-size: 14px; line-height: 1.75; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.stats-grid div { text-align: center; }
.stats-grid strong, .stats-grid span { display: block; }
.stats-grid strong { color: #f2f4ff; font-size: 16px; }
.stats-grid span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 4px 0 72px; }
.trust-row > div { display: flex; align-items: center; gap: 11px; color: #c4cbe0; }
.trust-row strong, .trust-row small { display: block; }
.trust-row strong { font-size: 12px; }
.trust-row small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.trust-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 10px; color: #a995ff; background: rgba(156,124,255,.09); }
.footer { display: flex; justify-content: space-between; padding: 19px 0 28px; border-top: 1px solid var(--line); color: #626e87; font-size: 11px; }
[hidden] { display: none !important; }
@keyframes rise { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { transform: translateX(4px); } }
@media (min-width: 761px) {
  html, body { height: 100%; overflow: hidden; }
  main.shell { height: calc(100vh - 62px); overflow: hidden; }
  .result-section { max-height: calc(100vh - 205px); overflow: hidden; }
  .result-grid { max-height: calc(100vh - 275px); }
  .video-frame { max-height: calc(100vh - 320px); }
  .info-panel { overflow: hidden; }
  .description { min-height: 90px; max-height: 120px; overflow: hidden; }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 620px); }
  .topbar { min-height: 72px; }
  .hero { padding: 58px 0 42px; }
  .hero h1 { font-size: clamp(38px, 12vw, 58px); }
  .resolver-form { display: block; padding: 7px; }
  .primary-btn { width: 100%; justify-content: space-between; min-height: 48px; }
  .hint-row { padding: 0 3px; }
  .result-grid { grid-template-columns: 1fr; }
  .video-actions { flex-direction: column; }
  .trust-row { grid-template-columns: 1fr; gap: 12px; padding-bottom: 45px; }
  .footer { font-size: 10px; }
}
