:root {
  --bg: #0b0f14;
  --bg-2: #0e141b;
  --card: #151c25;
  --card-2: #1a222d;
  --border: #263241;
  --text: #e8eef5;
  --muted: #93a1b1;
  --accent: #ff4500;
  --accent-hover: #ff5c26;
  --ok: #3fb950;
  --err: #f85149;
  --shadow: 0 10px 40px rgba(0,0,0,.35);
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(1200px 600px at 50% -200px, rgba(255,69,0,.12), transparent 60%), var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}
a { color: #8ab4ff; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 18px; }

header.site { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .badge { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: 17px; }
nav.top a { color: var(--muted); margin-left: 18px; font-size: 14px; }

.breadcrumb { font-size: 13px; color: var(--muted); padding: 10px 0 0; }
.breadcrumb a { color: var(--muted); }

.hero { text-align: center; padding: 26px 0 8px; }
h1 { font-size: clamp(26px, 5vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
h1 .hl { color: var(--accent); }
.sub { color: var(--muted); font-size: clamp(15px, 2.2vw, 18px); margin: 14px auto 0; max-width: 640px; }

.trust { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 6px; }
.trust span { background: var(--card); border: 1px solid var(--border); color: var(--muted); font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.trust span b { color: var(--text); font-weight: 600; }

.tool { background: linear-gradient(180deg, var(--card), var(--bg-2)); border: 1px solid var(--border); border-radius: 18px; padding: 22px; margin: 22px 0; box-shadow: var(--shadow); }
form.search { display: flex; gap: 10px; }
.input-wrap { position: relative; flex: 1; display: flex; }
.search input { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 15px 92px 15px 16px; color: var(--text); font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; width: 100%; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,69,0,.18); }
.paste-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: var(--card-2); border: 1px solid var(--border); color: var(--muted); font-size: 12.5px; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.paste-btn:hover { color: var(--text); border-color: var(--accent); }
.search button.go { background: var(--accent); border: none; border-radius: 12px; color: #fff; font-size: 15px; font-weight: 700; padding: 0 26px; cursor: pointer; transition: background .15s; white-space: nowrap; }
.search button.go:hover { background: var(--accent-hover); }
.search button.go:disabled { opacity: .6; cursor: wait; }

.msg { margin-top: 16px; padding: 12px 15px; border-radius: 10px; font-size: 14px; display: none; }
.msg.error { display:block; background: rgba(248,81,73,.12); border:1px solid var(--err); color:#ff9c96; }
.msg.info  { display:block; background: rgba(88,166,255,.1); border:1px solid #388bfd; color:#9dc7ff; }

.card { margin-top: 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: none; }
.card.visible { display: block; }
.poster-wrap { position: relative; width: 100%; background: #000; display: flex; justify-content: center; align-items: center; max-height: 460px; overflow: hidden; }
.poster-wrap img { max-width: 100%; max-height: 460px; display: block; }
.poster-badge { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.72); color:#fff; font-size:12px; padding:4px 8px; border-radius:6px; }
.card-body { padding: 18px 20px 20px; }
.card-meta { color: var(--muted); font-size: 13px; margin-bottom: 6px; display:flex; gap:10px; flex-wrap:wrap; }
.card-title { font-size: 17px; font-weight: 600; line-height: 1.4; margin-bottom: 12px; }
.mute-note { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.mute-note.ok { color: var(--ok); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.actions select { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 12px; font-size: 14px; outline: none; }
.dl-btn { flex: 1; min-width: 180px; background: var(--ok); border: none; border-radius: 8px; color:#04140a; font-weight: 700; font-size: 15px; padding: 13px 20px; cursor: pointer; transition: filter .15s; }
.dl-btn:hover { filter: brightness(1.08); }
.spinner { display:inline-block; width:15px; height:15px; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%; animation: spin .7s linear infinite; vertical-align:-2px; margin-right:7px; }
@keyframes spin { to { transform: rotate(360deg); } }

section.block { margin: 46px 0; }
section.block h2 { font-size: 24px; font-weight: 750; margin-bottom: 8px; letter-spacing: -.01em; }
section.block h3.sec { font-size: 18px; margin: 26px 0 6px; }
section.block > p.lead { color: var(--muted); margin-bottom: 22px; }

.prose p { margin: 0 0 15px; color: #cdd8e4; }
.prose ul { margin: 0 0 15px 20px; color: #cdd8e4; }
.prose li { margin-bottom: 6px; }
.prose a { color: #8ab4ff; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,69,0,.15); color: var(--accent); font-weight: 700; display: grid; place-items: center; margin-bottom: 10px; }
.step h3 { font-size: 15px; margin-bottom: 4px; }
.step p { font-size: 13.5px; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.feature h3 { font-size: 15px; margin-bottom: 4px; }
.feature p { font-size: 13.5px; color: var(--muted); }
.feature .ic { font-size: 20px; margin-bottom: 8px; display:block; }

.related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related a { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; display: block; }
.related a:hover { border-color: var(--accent); text-decoration: none; }
.related a b { color: var(--text); display: block; font-size: 14.5px; margin-bottom: 3px; }
.related a span { color: var(--muted); font-size: 13px; }

.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 4px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; align-items:center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--muted); font-size: 14px; padding: 0 0 14px; }

footer.site { border-top: 1px solid var(--border); margin-top: 40px; padding: 26px 0 40px; color: var(--muted); font-size: 13px; }
footer.site .fnav { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-bottom: 10px; }
footer.site .fnav a { color: var(--muted); }
footer.site .fnav.legal { margin-bottom: 14px; }
footer.site .fnav.legal a { font-size: 12.5px; opacity: .85; }
footer.site .center { text-align: center; }
.disclaimer { margin-top: 12px; font-size: 12px; opacity: .8; max-width: 660px; margin-inline: auto; text-align: center; }

@media (max-width: 640px) {
  form.search { flex-direction: column; }
  .search button.go { padding: 14px; }
  .steps, .features, .related { grid-template-columns: 1fr; }
  nav.top { display: none; }
}
