:root {
  --bg: #f6f6fb;
  --card: #fff;
  --text: #191a23;
  --muted: #61637a;
  --line: #e4e4ef;
  --brand: #5b3df5;
  --brand-2: #8b5cf6;
  --brand-soft: #efebff;
  --ok: #12a150;
  --err: #d92d4b;
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1016;
    --card: #181a23;
    --text: #eceef7;
    --muted: #a1a3b8;
    --line: #2a2c3a;
    --brand-soft: #241d4d;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); }
img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1240px; margin: 0 auto; padding: 14px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; white-space: nowrap; }
.brand b { color: var(--brand); }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--brand); background: var(--brand-soft); }

.ad-row { display: flex; justify-content: center; margin: 4px 0 8px; }
.ad { overflow: hidden; }
.ad iframe { border: 0; display: block; }
.ad-mobile { display: none; justify-content: center; margin: 0 0 18px; }
.ad-native { margin: 0 0 18px; min-height: 1px; }

.layout { display: grid; grid-template-columns: 160px minmax(0, 860px) 160px; gap: 24px; justify-content: center; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.rail { position: sticky; top: 16px; align-self: start; }
.main { min-width: 0; }

.hero { text-align: center; padding: 28px 0 22px; }
.hero h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.02em; }
.sub { color: var(--muted); margin: 0 auto 22px; max-width: 640px; }
.tool { display: flex; gap: 10px; max-width: 760px; margin: 0 auto; }
.field { position: relative; flex: 1; }
.field input {
  width: 100%; height: 58px; padding: 0 92px 0 18px; font-size: 16px; color: var(--text);
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); outline: none;
}
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.paste {
  position: absolute; right: 8px; top: 8px; height: 42px; padding: 0 14px; border: 0; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; cursor: pointer;
}
.go, .btn, .opt {
  height: 58px; padding: 0 26px; border: 0; border-radius: var(--radius); cursor: pointer; font-weight: 800; font-size: 16px;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.go:disabled { opacity: .6; cursor: progress; }
.status { min-height: 24px; margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.status.err { color: var(--err); }
.supported { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

.result { max-width: 760px; margin: 18px auto 0; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.media { display: flex; gap: 14px; align-items: flex-start; }
.media img { width: 128px; height: 128px; object-fit: cover; border-radius: 12px; background: var(--line); flex: none; }
.media h2 { font-size: 17px; line-height: 1.35; margin: 2px 0 6px; overflow-wrap: anywhere; }
.media .meta { color: var(--muted); font-size: 14px; margin: 0; }
.group { margin: 14px 0 0; }
.group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.opt { height: 48px; font-size: 15px; padding: 0 12px; justify-content: space-between; }
.opt small { font-weight: 600; opacity: .85; }
.opt.audio { background: var(--brand-soft); color: var(--brand); }
.progress { margin: 14px 0 0; }
.bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .4s; }
.progress p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.done { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.done .btn { height: 50px; background: var(--ok); }
.again { background: none; border: 0; color: var(--brand); font-weight: 700; cursor: pointer; font-size: 15px; }
.note { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 13px; }
.sponsored { display: block; margin: 12px 0 0; font-size: 13px; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 18px; }
.card h2 { font-size: 22px; margin: 0 0 12px; }
.prose p { margin: 0 0 12px; }
.steps { margin: 0; padding-left: 22px; }
.steps li { margin: 0 0 8px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.feature { background: var(--bg); border-radius: 12px; padding: 14px; }
.feature h3 { font-size: 16px; margin: 0 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.faq { border-top: 1px solid var(--line); padding: 12px 0; }
.faq:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.tools { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.tools a { display: block; padding: 10px 12px; border-radius: 10px; background: var(--bg); text-decoration: none; font-weight: 600; }
.page { margin-top: 24px; }
.page h1 { font-size: 30px; margin: 0 0 14px; }
.page h2 { font-size: 20px; margin: 20px 0 8px; }
.page .btn { height: 46px; margin-top: 8px; }

.foot { max-width: 1240px; margin: 24px auto 0; padding: 22px 16px 40px; text-align: center; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 8px; }
.foot a { color: var(--muted); }

.modal, .wall { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 10, 20, .6); backdrop-filter: blur(4px); }
.wall { background: rgba(10, 10, 20, .85); }
.modal[hidden], .wall[hidden] { display: none; }
.modal-box { background: var(--card); color: var(--text); border-radius: 20px; padding: 26px; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal-box h2 { margin: 0 0 8px; }
.modal-box p { color: var(--muted); }
#captcha-widget { display: flex; justify-content: center; min-height: 78px; }
.err { color: var(--err); }
.wall-icon { font-size: 42px; }
.wall .go { width: 100%; margin-top: 8px; }

#ad-bait { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; }

@media (max-width: 1239px) {
  .layout { grid-template-columns: minmax(0, 860px); }
  .rail { display: none; }
}
@media (max-width: 767px) {
  .ad-row { display: none; }
  .ad-mobile { display: flex; }
  .top { flex-direction: column; align-items: stretch; gap: 8px; padding-bottom: 6px; }
  .brand { justify-content: center; }
  .nav { justify-content: center; }
  .hero { padding-top: 14px; }
  .tool { flex-direction: column; }
  .go { width: 100%; }
  .media img { width: 88px; height: 88px; }
  .card { padding: 18px 16px; }
}
