/* SnapFetch — clean, fast, mobile-first. No framework. */
:root {
  --ink: #14181f;
  --muted: #5b6470;
  --line: #e3e7ec;
  --brand: #0f766e;
  --brand-dark: #0b5e57;
  --bg: #f7f8fa;
  --card: #ffffff;
  --danger: #b91c1c;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
a { color: var(--brand); }
h1 { font-size: 1.7rem; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 1.25rem; margin: 32px 0 8px; }
h3 { font-size: 1.05rem; margin: 20px 0 4px; }

/* header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.logo { font-size: 1.35rem; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.92rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* hero / tool */
.hero { padding: 28px 0 8px; }
.sub { color: var(--muted); margin: 0 0 18px; }
.dl-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.url-row { display: flex; gap: 10px; }
.url-row input {
  flex: 1; min-width: 0; padding: 12px 14px; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 8px; outline: none;
}
.url-row input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,118,110,.15); }
.url-row button, .btn {
  background: var(--brand); color: #fff; border: 0; border-radius: 8px;
  padding: 12px 20px; font-size: 1rem; font-weight: 700; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.url-row button:hover, .btn:hover { background: var(--brand-dark); }
.url-row button:disabled { opacity: .6; cursor: wait; }
.platforms { font-size: 0.88rem; color: var(--muted); margin: 12px 0 0; }
.chip {
  display: inline-block; background: #eef2f4; border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 10px; margin: 2px 2px 2px 0; font-size: 0.82rem;
}
.chip em { font-style: normal; color: var(--muted); }

/* status / result */
.status { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-size: 0.95rem; }
.status.err { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.status.info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.result {
  margin-top: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
  display: flex; gap: 16px; flex-wrap: wrap;
}
.thumb { width: 160px; max-width: 100%; border-radius: 8px; object-fit: cover; background: #eee; }
.res-body { flex: 1; min-width: 220px; }
.res-body h2 { margin: 4px 0 4px; font-size: 1.1rem; }
.res-platform { margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.res-meta { margin: 0 0 10px; color: var(--muted); font-size: 0.9rem; }
.note { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 10px 12px; font-size: 0.9rem; }
.format-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.format-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 9px 14px; font-size: 0.95rem; cursor: pointer;
}
.format-btn:hover { border-color: var(--brand); color: var(--brand); }
.format-btn .nw { display: block; font-size: 0.75rem; color: var(--brand); font-weight: 700; }
.audio-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.audio-label { color: var(--muted); font-size: 0.92rem; }
.btn-secondary {
  border: 1px solid var(--brand); background: #fff; color: var(--brand);
  border-radius: 8px; padding: 9px 16px; font-size: 0.95rem; font-weight: 700; cursor: pointer;
}
.btn-secondary:hover { background: #f0fdfa; }

/* ad slots — placeholder styling. When a real ad code is pasted in,
   remove the dashed border / label styling by deleting the .ad-slot
   placeholder CSS, or leave it: real ad code replaces the inner content. */
.ad-slot {
  margin: 24px 0; min-height: 90px; border: 1px dashed #cbd5e1;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: #fbfcfd; color: #94a3b8; font-size: 0.8rem; text-align: center;
}
.ad-slot .ad-label { text-transform: uppercase; letter-spacing: .08em; }

/* guides / footer */
.how ol, .guide ol { padding-left: 22px; }
.how li, .guide li { margin-bottom: 6px; }
.guides-teaser ul { list-style: none; padding: 0; }
.guides-teaser li { margin-bottom: 8px; }
.guide { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.lede { font-size: 1.08rem; color: var(--muted); }
.fineprint { color: var(--muted); font-size: 0.85rem; }
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 32px; background: var(--card); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; font-size: 0.9rem; }
.footer-links strong { margin-right: 4px; }

@media (max-width: 560px) {
  .url-row { flex-direction: column; }
  .url-row button { width: 100%; }
  h1 { font-size: 1.4rem; }
  .thumb { width: 100%; max-height: 220px; }
}
