/* ============================================================
   Sieve.live — arcads.ai-inspired UI
   Pure black, bold centered hero, minimal flat cards,
   liquid glass surfaces, scrolling marquee
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;
  --bg-elevated: #161616;

  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --border-accent: rgba(255,255,255,0.2);

  --accent: #fff;
  --accent-light: #fff;
  --accent-bright: #fff;

  --grad: linear-gradient(135deg, #fff, #ccc);
  --grad-text: linear-gradient(135deg, #fff, #a1a1aa);

  --text: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-dim: #52525b;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);

  --r-xl: 20px;
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 6px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* Liquid glass utility */
.glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
}

/* Scroll progress */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: #fff; z-index: 200; transition: width 0.1s linear;
}

/* ============================================================
   NAV — arcads.ai style: minimal, top, transparent
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  width: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
  transition: all 0.3s var(--ease);
}
.nav.scrolled { background: rgba(0,0,0,0.95); }
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
  margin-right: auto;
}
.nav-brand .logo {
  width: 26px; height: 26px; border-radius: 7px;
  background: #fff; color: #000;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
}
.nav-brand-link { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: var(--r-pill);
  transition: all 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-dir-link { font-weight: 600; }
.nav-cta {
  font-size: 14px; font-weight: 600; color: #000;
  background: #fff; border: none;
  padding: 9px 20px; border-radius: var(--r-pill);
  cursor: pointer; text-decoration: none;
  transition: all 0.2s var(--ease);
}
.nav-cta:hover { background: #e4e4e7; transform: scale(1.03); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   HERO — arcads.ai style: huge centered, bold, minimal
   ============================================================ */
.hero {
  text-align: center;
  padding: 80px 24px 40px;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  margin-bottom: 28px;
  animation: fadeInDown 0.6s var(--ease-out);
}
.hero h1 {
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}
.hero h1 .highlight {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .marker {
  position: relative; display: inline-block;
}
.hero h1 .marker::after {
  content: ""; position: absolute; bottom: 2px; left: 0; right: 0;
  height: 10px; background: rgba(255,255,255,0.1); border-radius: 4px; z-index: -1;
}
.hero p.lead {
  font-size: clamp(17px, 2.5vw, 21px);
  color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 36px;
  line-height: 1.55;
  animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Extract input — primary CTA ---------- */
.extract-wrap { max-width: 640px; margin: 0 auto; animation: fadeInUp 0.6s var(--ease-out) 0.3s both; }
.extract-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 6px;
  display: flex; gap: 6px; align-items: center;
  transition: all 0.3s var(--ease);
}
.extract-card:focus-within { border-color: var(--border-hover); }
.extract-card input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 15px; color: var(--text);
  padding: 14px 16px; font-family: inherit;
}
.extract-card input::placeholder { color: var(--text-muted); }
.lang-select {
  border: 1px solid var(--border); background: var(--bg-soft);
  color: var(--text); font-family: inherit; font-size: 13px; font-weight: 500;
  padding: 10px 12px; border-radius: var(--r-pill);
  cursor: pointer; outline: none; transition: border 0.2s var(--ease);
}
.lang-select:hover { border-color: var(--border-hover); }
.btn-extract {
  border: none; cursor: pointer;
  background: #fff; color: #000;
  font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.btn-extract:hover { background: #e4e4e7; transform: scale(1.03); }
.btn-extract:active { transform: scale(0.97); }
.btn-extract:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.hero-meta {
  margin-top: 24px;
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  color: var(--text-muted); font-size: 13px;
  animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.kbd-hint { margin-top: 14px; font-size: 12px; color: var(--text-dim); }
.kbd {
  display: inline-block; padding: 2px 7px; border-radius: 5px;
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 11px; font-family: ui-monospace, monospace; color: var(--text-secondary);
}

/* ---------- Scrolling marquee (arcads.ai style) ---------- */
.marquee {
  overflow: hidden; padding: 20px 0; margin: 20px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; gap: 32px; width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-item {
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; display: flex; align-items: center; gap: 8px;
}
.marquee-item .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-dim); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- History ---------- */
.history {
  max-width: 640px; margin: 14px auto 0;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.history-label { font-size: 12px; color: var(--text-muted); margin-right: 4px; }
.history-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px; border-radius: var(--r-pill);
  font-size: 12px; color: var(--text-secondary); cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all 0.2s var(--ease); max-width: 260px;
}
.history-chip:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }
.history-chip img { width: 28px; height: 16px; border-radius: 3px; object-fit: cover; flex-shrink: 0; }
.history-chip .title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-chip .x { opacity: 0.5; padding: 0 4px; border: none; background: none; cursor: pointer; color: inherit; font-size: 14px; }
.history-chip .x:hover { opacity: 1; }
.history-empty { font-size: 12px; color: var(--text-dim); }

/* ============================================================
   RESULTS
   ============================================================ */
.results { margin: 40px auto; max-width: 1100px; display: none; }
.results.show { display: block; animation: slideUp 0.5s var(--ease-spring); }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.video-head {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px; margin-bottom: 14px;
  display: flex; gap: 18px; align-items: center;
}
.video-thumb {
  width: 180px; aspect-ratio: 16/9; border-radius: var(--r-md);
  object-fit: cover; flex-shrink: 0; cursor: pointer;
  transition: transform 0.25s var(--ease-spring);
}
.video-thumb:hover { transform: scale(1.03); }
.video-info { flex: 1; min-width: 0; }
.video-info h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.video-info .author { color: var(--text-muted); font-size: 14px; }
.video-info .author a { color: var(--text); text-decoration: none; }
.video-meta { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.video-info .lang-tag {
  display: inline-block; margin-top: 8px;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.06); color: var(--text-secondary);
  border: 1px solid var(--border);
}

.player-wrap {
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: 14px;
  aspect-ratio: 16/9; display: none;
  border: 1px solid var(--border);
}
.player-wrap.show { display: block; animation: slideUp 0.4s var(--ease-spring); }
.player-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.stat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 16px 10px; text-align: center;
  transition: all 0.25s var(--ease);
}
.stat:hover { background: var(--bg-card-hover); border-color: var(--border-hover); transform: translateY(-2px); }
.stat .num { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.stat .lbl { font-size: 10px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }

/* ---------- Panel ---------- */
.panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px;
}
.toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 14px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.tab {
  border: none; cursor: pointer; background: transparent;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--text-secondary); padding: 8px 16px; border-radius: var(--r-pill);
  transition: all 0.2s var(--ease);
}
.tab.active { background: #fff; color: #000; }
.tab:not(.active):hover { color: var(--text); background: rgba(255,255,255,0.05); }
.tool-spacer { flex: 1; }
.tool-btn {
  border: 1px solid var(--border); cursor: pointer;
  background: var(--bg-soft); color: var(--text-secondary);
  font-family: inherit; font-size: 13px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.2s var(--ease);
}
.tool-btn:hover { color: var(--text); border-color: var(--border-hover); }
.tool-btn.on { background: #fff; color: #000; border-color: transparent; }
.export-group { display: inline-flex; gap: 6px; }

/* ---------- Search ---------- */
.search-bar { margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.search-bar input {
  flex: 1; border: 1px solid var(--border); background: var(--bg-soft);
  border-radius: var(--r-pill); padding: 10px 18px;
  font-family: inherit; font-size: 14px; color: var(--text); outline: none;
  transition: all 0.2s var(--ease);
}
.search-bar input:focus { border-color: var(--border-hover); }
.search-bar input::placeholder { color: var(--text-muted); }
.search-count { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.search-nav { display: inline-flex; gap: 4px; }
.search-nav button {
  border: 1px solid var(--border); background: var(--bg-soft);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  color: var(--text-secondary); font-size: 14px; line-height: 1;
  transition: all 0.2s var(--ease);
}
.search-nav button:hover { color: var(--text); border-color: var(--border-hover); }

/* ---------- Transcript body ---------- */
.transcript-body {
  max-height: 460px; overflow-y: auto;
  font-size: 15px; line-height: 1.7; color: var(--text-secondary);
  padding-right: 8px;
}
.transcript-body::-webkit-scrollbar { width: 5px; }
.transcript-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 6px; }
.transcript-body::-webkit-scrollbar-track { background: transparent; }
.seg { display: flex; gap: 14px; padding: 6px 4px; border-radius: 8px; transition: background 0.2s var(--ease); }
.seg:hover { background: rgba(255,255,255,0.03); }
.seg.current { background: rgba(255,255,255,0.06); }
.seg .ts {
  flex-shrink: 0; width: 64px; font-variant-numeric: tabular-nums;
  font-size: 12px; color: var(--text); font-weight: 600; padding-top: 3px;
  cursor: pointer; text-decoration: none; background: none; border: none;
  font-family: ui-monospace, monospace; transition: transform 0.2s var(--ease-spring);
}
.seg .ts:hover { text-decoration: underline; transform: scale(1.05); }
.seg .ts.hide { display: none; }
.seg .txt { color: var(--text); }
.seg .txt mark { background: rgba(255,255,255,0.15); color: var(--text); border-radius: 3px; padding: 0 2px; }

/* ---------- Thumbnails ---------- */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.thumb-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
  text-align: center; padding: 10px; transition: all 0.25s var(--ease);
}
.thumb-card:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.thumb-card img { width: 100%; border-radius: var(--r-sm); display: block; }
.thumb-card .label { font-size: 12px; color: var(--text-muted); margin: 8px 0; }
.thumb-card a {
  font-size: 13px; font-weight: 600; color: var(--text);
  text-decoration: none; padding: 6px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border); display: inline-block; transition: all 0.2s var(--ease);
}
.thumb-card a:hover { background: #fff; color: #000; border-color: transparent; }

/* ============================================================
   SECTIONS — arcads.ai style: centered, bold, minimal
   ============================================================ */
.section { padding: 80px 0; }
.section-label {
  display: inline-block; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.03em; font-weight: 800;
  margin-bottom: 12px; line-height: 1.1;
}
.section h2 .highlight {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section .sub {
  color: var(--text-secondary); margin-bottom: 40px;
  font-size: 17px; max-width: 540px;
}
.section.center { text-align: center; }
.section.center .sub { margin-left: auto; margin-right: auto; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px 24px; text-align: center;
  transition: all 0.3s var(--ease);
}
.step:hover { background: var(--bg-card-hover); border-color: var(--border-hover); transform: translateY(-4px); }
.step .num {
  width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 16px;
  background: #fff; color: #000;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.step p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px 20px;
  transition: all 0.3s var(--ease);
}
.feature:hover { background: var(--bg-card-hover); border-color: var(--border-hover); transform: translateY(-3px); }
.feature .icon { font-size: 28px; margin-bottom: 14px; }
.feature h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonial {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px 20px;
  transition: all 0.3s var(--ease);
}
.testimonial:hover { background: var(--bg-card-hover); border-color: var(--border-hover); transform: translateY(-3px); }
.testimonial .stars { color: #fff; font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial blockquote { font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 16px; }
.testimonial .who { display: flex; align-items: center; gap: 10px; }
.testimonial .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: #000;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.testimonial .who .name { font-size: 14px; font-weight: 600; }
.testimonial .who .role { font-size: 12px; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); margin-bottom: 10px; overflow: hidden;
  transition: all 0.25s var(--ease);
}
.faq-item.open { border-color: var(--border-hover); }
.faq-q {
  width: 100%; text-align: left; cursor: pointer;
  border: none; background: transparent; font-family: inherit;
  font-size: 15px; font-weight: 600; color: var(--text);
  padding: 20px 22px; display: flex; justify-content: space-between; align-items: center;
}
.faq-q .chev { transition: transform 0.3s var(--ease-spring); color: var(--text-muted); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--text); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-out);
  color: var(--text-secondary); font-size: 14px; line-height: 1.6; padding: 0 22px;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }

/* ---------- CTA band ---------- */
.cta-band {
  margin: 40px auto; max-width: 1100px; width: calc(100% - 48px);
  border-radius: var(--r-xl); padding: 64px 40px; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(26px, 4.5vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.cta-band p { color: var(--text-secondary); margin-bottom: 24px; font-size: 17px; }
.cta-band .btn-extract { padding: 16px 36px; font-size: 15px; }

/* ---------- Footer — arcads.ai style with link columns ---------- */
.footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}
.footer-cols {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); max-width: 280px; }
.footer-col h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-secondary); text-decoration: none; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1100px; margin: 32px auto 0; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-muted);
}
.footer-bottom .links { display: flex; gap: 16px; }
.footer-bottom .links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-bottom .links a:hover { color: var(--text); }

/* ---------- States ---------- */
.loader { display: none; text-align: center; padding: 50px 0; }
.loader.show { display: block; }
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: #fff;
  margin: 0 auto 14px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-box {
  display: none; max-width: 580px; margin: 20px auto;
  border-radius: var(--r-md); padding: 16px 22px;
  color: #f87171; font-size: 14px; text-align: center;
  border: 1px solid rgba(248,113,113,0.2); background: rgba(248,113,113,0.05);
}
.error-box.show { display: block; animation: slideUp 0.3s var(--ease-spring); }
.error-box .retry {
  margin-top: 10px; display: inline-block; cursor: pointer;
  background: #f87171; color: #fff; border: none;
  padding: 7px 18px; border-radius: var(--r-pill);
  font-family: inherit; font-weight: 600; font-size: 13px;
  transition: transform 0.2s var(--ease-spring);
}
.error-box .retry:hover { transform: scale(1.05); }

/* ============================================================
   TOOLS SUITE
   ============================================================ */
.tools-section { padding: 50px 0 30px; }
.tools-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 28px;
}
.tool-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px 18px; text-align: center;
  cursor: pointer; transition: all 0.3s var(--ease);
  position: relative; text-decoration: none; color: inherit;
}
.tool-card:hover { background: var(--bg-card-hover); border-color: var(--border-hover); transform: translateY(-4px); }
.tool-card.active { border-color: var(--border-hover); background: var(--bg-elevated); }
.tool-card .tool-icon { font-size: 30px; margin-bottom: 10px; transition: transform 0.3s var(--ease-spring); }
.tool-card:hover .tool-icon { transform: scale(1.1); }
.tool-card .tool-name { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.tool-card .tool-desc { font-size: 12px; color: var(--text-muted); margin-top: 5px; line-height: 1.4; }
.tool-card .tool-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 3px 8px; border-radius: var(--r-pill);
  background: #fff; color: #000;
}

.tool-panel {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 28px;
  min-height: 200px; display: none;
}
.tool-panel.show { display: block; animation: slideUp 0.4s var(--ease-spring); }
.tool-panel-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.tool-panel-header .big-icon { font-size: 28px; }
.tool-panel-header h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.tool-panel-header .sub { font-size: 14px; color: var(--text-muted); }

.tool-panel-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.tool-input {
  flex: 1; min-width: 200px;
  border: 1px solid var(--border); background: var(--bg-soft);
  border-radius: var(--r-pill); padding: 11px 18px;
  font-family: inherit; font-size: 14px; color: var(--text); outline: none;
  transition: all 0.2s var(--ease);
}
.tool-input:focus { border-color: var(--border-hover); }
.tool-input::placeholder { color: var(--text-muted); }
.tool-select {
  border: 1px solid var(--border); background: var(--bg-soft);
  color: var(--text); font-family: inherit; font-size: 14px; font-weight: 500;
  padding: 11px 16px; border-radius: var(--r-pill); cursor: pointer; outline: none;
  transition: border 0.2s var(--ease);
}
.tool-select:hover { border-color: var(--border-hover); }
.tool-btn {
  border: none; cursor: pointer; background: #fff; color: #000;
  font-family: inherit; font-weight: 600; font-size: 14px;
  padding: 11px 24px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s var(--ease); white-space: nowrap;
}
.tool-btn:hover { background: #e4e4e7; transform: scale(1.03); }
.tool-btn:active { transform: scale(0.96); }
.tool-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.tool-btn.secondary { background: var(--bg-soft); color: var(--text); border: 1px solid var(--border); }
.tool-btn.secondary:hover { border-color: var(--border-hover); }

.tool-output { display: none; }
.tool-output.show { display: block; animation: slideUp 0.4s var(--ease-spring); }
.tool-loader { text-align: center; padding: 36px; display: none; }
.tool-loader.show { display: block; }
.tool-error {
  display: none; padding: 14px 18px; border-radius: var(--r-md); margin-bottom: 14px;
  color: #f87171; font-size: 14px; text-align: center;
  border: 1px solid rgba(248,113,113,0.2); background: rgba(248,113,113,0.05);
}
.tool-error.show { display: block; animation: slideUp 0.3s var(--ease-spring); }

/* ---------- Info ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.info-main {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px; display: flex; gap: 16px; align-items: flex-start;
  grid-column: 1 / -1;
}
.info-main img { width: 220px; aspect-ratio: 16/9; border-radius: var(--r-md); object-fit: cover; flex-shrink: 0; }
.info-main .details h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.info-main .details .channel { color: var(--text); font-size: 14px; text-decoration: none; display: block; margin-bottom: 8px; }
.info-main .details .desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; max-height: 120px; overflow-y: auto; white-space: pre-wrap; word-break: break-word; }
.info-stat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px; text-align: center;
  transition: all 0.25s var(--ease);
}
.info-stat:hover { background: var(--bg-card-hover); transform: translateY(-2px); }
.info-stat .v { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.info-stat .l { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; font-weight: 500; }

/* ---------- Tags ---------- */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  padding: 7px 14px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500; color: var(--text);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.25s var(--ease-spring);
}
.tag-pill:hover { transform: translateY(-2px) scale(1.05); background: rgba(255,255,255,0.1); border-color: var(--border-hover); }
.tag-pill .copy-tag { opacity: 0; font-size: 11px; margin-left: 4px; transition: opacity 0.2s; }
.tag-pill:hover .copy-tag { opacity: 0.7; }
.tags-empty { color: var(--text-muted); font-size: 14px; padding: 20px; text-align: center; }

/* ---------- Embed ---------- */
.embed-preview { border-radius: var(--r-md); overflow: hidden; margin-bottom: 14px; aspect-ratio: 16/9; border: 1px solid var(--border); }
.embed-preview iframe { width: 100%; height: 100%; border: 0; display: block; }
.code-block {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 18px;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 13px; line-height: 1.6; color: var(--text-secondary);
  white-space: pre-wrap; word-break: break-all; position: relative;
  max-height: 200px; overflow-y: auto;
}
.code-block .copy-code {
  position: absolute; top: 8px; right: 8px;
  padding: 5px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--bg-card);
  cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text-secondary);
  font-family: inherit; transition: all 0.2s var(--ease);
}
.code-block .copy-code:hover { color: var(--text); border-color: var(--border-hover); }
.embed-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.embed-links a {
  font-size: 13px; font-weight: 600; color: var(--text);
  text-decoration: none; padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border); transition: all 0.2s var(--ease);
}
.embed-links a:hover { background: #fff; color: #000; border-color: transparent; }

/* ---------- Download ---------- */
.dl-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.dl-option {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 18px; text-align: center;
  transition: all 0.25s var(--ease); cursor: pointer; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text);
}
.dl-option:hover { transform: translateY(-3px); border-color: var(--border-hover); background: var(--bg-card-hover); }
.dl-option .q-icon { font-size: 26px; }
.dl-option .q-label { font-size: 14px; font-weight: 700; }
.dl-option .q-sub { font-size: 12px; color: var(--text-muted); }
.dl-option.disabled { opacity: 0.4; pointer-events: none; }
.dl-note {
  margin-top: 16px; padding: 12px 18px; border-radius: var(--r-md);
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
  background: var(--bg-card); border: 1px solid var(--border);
}
.dl-note strong { color: var(--text-secondary); }
.dl-note a { color: var(--text); text-decoration: underline; }

/* ---------- Table ---------- */
th { color: var(--text-secondary); font-weight: 600; }
td { color: var(--text-secondary); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .extract-card { flex-direction: column; padding: 10px; align-items: stretch; }
  .extract-card input { width: 100%; }
  .lang-select { width: 100%; }
  .btn-extract { width: 100%; justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps, .features, .testimonials { grid-template-columns: 1fr; }
  .video-head { flex-direction: column; text-align: center; }
  .video-thumb { width: 100%; }
  .export-group { flex-wrap: wrap; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-panel-toolbar { flex-direction: column; align-items: stretch; }
  .info-grid { grid-template-columns: 1fr; }
  .info-main { flex-direction: column; }
  .info-main img { width: 100%; }
  .dl-options { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ============================================================
   SPA VIEWS
   ============================================================ */
.view { display: none; }
.view.view-active { display: block; animation: viewIn 0.4s var(--ease-out); }
@keyframes viewIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.tool-page { padding: 40px 24px 60px; max-width: 900px; margin: 0 auto; }
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--bg-card);
  margin-bottom: 28px; transition: all 0.2s var(--ease);
}
.back-btn:hover { color: var(--text); border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateX(-3px); }

.tool-page-header {
  display: flex; gap: 18px; align-items: flex-start; margin-bottom: 32px;
}
.tool-page-header .big-icon { font-size: 44px; flex-shrink: 0; line-height: 1; }
.tool-page-header h1 {
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 8px;
}
.tool-page-header .lead {
  font-size: 16px; color: var(--text-secondary);
  max-width: 540px; line-height: 1.55;
}
.tool-page .section-label { margin-bottom: 8px; }

@media (max-width: 760px) {
  .tool-page-header { flex-direction: column; gap: 12px; }
  .tool-page-header .big-icon { font-size: 34px; }
}

/* ============================================================
   SPONSOR AD SLOTS
   ============================================================ */
.ad-slot {
  position: fixed; top: 70px; width: 160px;
  display: flex; flex-direction: column; gap: 14px;
  z-index: 90; pointer-events: none;
}
.ad-left { left: 8px; }
.ad-right { right: 8px; }

/* On narrower screens, hide side rail ads — inline banners are in the content */
@media (max-width: 1280px) {
  .ad-slot { display: none; }
}

.ad-label {
  font-size: 9px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-dim); text-align: center; margin-bottom: -6px;
}

.sponsor-card {
  background: #1a1a1a; border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-md); padding: 14px 10px; text-align: center;
  pointer-events: auto; transition: all 0.25s var(--ease);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.sponsor-card:hover { border-color: rgba(255,255,255,0.3); background: #222; transform: translateY(-2px); }
.sponsor-card[data-tier="sidebar-large"] { min-height: 180px; display: flex; flex-direction: column; justify-content: center; }
.sponsor-sticky { position: sticky; top: 200px; }

.sponsor-price { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.sponsor-price span { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.sponsor-desc { font-size: 10px; color: var(--text-muted); margin: 5px 0 10px; font-family: ui-monospace, monospace; }
.sponsor-claim {
  border: 1px solid var(--border); background: rgba(255,255,255,0.05);
  color: var(--text); font-family: inherit; font-size: 11px; font-weight: 600;
  padding: 7px 12px; border-radius: var(--r-pill); cursor: pointer;
  transition: all 0.25s var(--ease-spring); width: 100%;
}
.sponsor-claim:hover { background: #fff; color: #000; border-color: transparent; transform: scale(1.03); }

.sponsor-card.claimed { padding: 0; overflow: hidden; }
.sponsor-card.claimed .sponsor-content { padding: 10px; text-align: center; }
.sponsor-card.claimed .sponsor-content img { width: 44px; height: 44px; border-radius: 10px; margin: 0 auto 6px; display: block; }
.sponsor-card.claimed .sponsor-content .name { font-size: 12px; font-weight: 700; }
.sponsor-card.claimed .sponsor-content .tag { font-size: 10px; color: var(--text-muted); margin: 4px 0 6px; line-height: 1.4; }
.sponsor-card.claimed .sponsor-content a { font-size: 11px; font-weight: 600; color: var(--text); text-decoration: none; }
.sponsor-card.claimed .sponsor-badge {
  font-size: 8px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-dim); padding: 3px 0; background: var(--bg-soft);
}

.ad-inline { max-width: 728px; margin: 28px auto; text-align: center; }
.ad-inline .ad-label {
  margin-bottom: 5px; display: block;
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-dim);
}
.sponsor-banner-card {
  background: #1a1a1a; border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-md); min-height: 90px;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  padding: 14px 22px; transition: all 0.25s var(--ease);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.sponsor-banner-card:hover { border-color: rgba(255,255,255,0.3); background: #222; }
.sponsor-banner-info { text-align: left; }
.sponsor-banner-info .sponsor-price { font-size: 24px; }
.sponsor-banner-info .sponsor-desc { margin: 4px 0 0; }

@media (max-width: 760px) {
  .ad-inline { margin: 20px 16px; }
  .sponsor-banner-card { flex-direction: column; gap: 10px; padding: 14px; }
  .sponsor-banner-info { text-align: center; }
}

/* ============================================================
   SPONSORSHIP MODAL
   ============================================================ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 1000; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.show { display: flex; animation: fadeIn 0.2s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--r-xl); max-width: 480px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative;
}
.modal-head {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-head h2 { font-size: 18px; font-weight: 700; }
.modal-head p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.modal-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 20px; cursor: pointer; padding: 4px 8px; border-radius: 8px;
  transition: all 0.15s;
}
.modal-close:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.modal-body { padding: 24px; }
.modal-body label { font-size: 13px; font-weight: 600; color: var(--text-secondary); display: block; margin-bottom: 6px; }
.modal-body input, .modal-body select, .modal-body textarea {
  width: 100%; border: 1px solid var(--border); background: var(--bg-soft);
  border-radius: var(--r-md); padding: 10px 14px;
  font-family: inherit; font-size: 14px; color: var(--text); outline: none;
  margin-bottom: 14px; transition: border 0.2s;
}
.modal-body input:focus, .modal-body select:focus, .modal-body textarea:focus { border-color: var(--border-hover); }
.modal-body input::placeholder { color: var(--text-muted); }
.modal-autofill-btn {
  padding: 8px 16px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; margin-bottom: 16px;
}
.modal-autofill-btn:hover { background: rgba(255,255,255,0.1); }
.modal-preview {
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 14px; margin-bottom: 16px; background: var(--bg-card);
}
.modal-preview img { width: 40px; height: 40px; border-radius: 8px; vertical-align: middle; margin-right: 10px; }
.modal-preview .preview-name { font-size: 14px; font-weight: 700; }
.modal-preview .preview-tag { font-size: 12px; color: var(--text-muted); line-height: 1.4; max-width: 240px; }
.modal-preview .preview-link { font-size: 12px; font-weight: 600; color: var(--text); text-decoration: none; }
.modal-preview .preview-link:hover { text-decoration: underline; }
.modal-summary {
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 14px 18px; margin-bottom: 16px; background: var(--bg-card);
}
.summary-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.summary-row span { color: var(--text-muted); }
.summary-row strong { color: var(--text); }
.sponsor-pay {
  background: #fff; color: #000; border: none;
  padding: 14px; border-radius: var(--r-pill);
  font-family: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer; transition: all 0.2s;
}
.sponsor-pay:hover { background: #e4e4e7; transform: scale(1.02); }
.modal-note { font-size: 12px; color: var(--text-muted); margin-top: 12px; text-align: center; }

/* ============================================================
   LANDING PAGES
   ============================================================ */
.lp-container { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.lp-section-label {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px;
}
.lp-h1 {
  font-size: clamp(32px, 6vw, 52px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.05; margin-bottom: 16px; text-align: center;
}
.lp-h2 {
  font-size: clamp(24px, 4vw, 36px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.15; margin-bottom: 24px; text-align: center;
}
.lp-highlight {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lp-sub {
  font-size: 18px; color: var(--text-secondary);
  line-height: 1.6; text-align: center; max-width: 600px; margin: 0 auto 32px;
}

.lp-hero { padding: 80px 0 60px; text-align: center; position: relative; overflow: hidden; }
.lp-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 600px 400px at 50% 0%, rgba(255,255,255,0.04), transparent);
  pointer-events: none;
}
.lp-badge {
  display: inline-block; padding: 7px 18px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
  color: var(--text-secondary); background: rgba(255,255,255,0.05); border: 1px solid var(--border);
}

.lp-cta {
  display: flex; gap: 8px; padding: 6px; max-width: 600px; margin: 0 auto 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
}
.lp-cta input {
  flex: 1; border: none; background: transparent;
  font-size: 15px; color: var(--text); outline: none; padding: 14px 18px;
}
.lp-cta input::placeholder { color: var(--text-muted); }
.lp-cta .btn-extract { white-space: nowrap; }

.lp-audience { font-size: 14px; color: var(--text-muted); margin-top: 16px; }
.lp-audience-label { color: var(--text); font-weight: 600; }

.lp-pain { padding: 36px; margin: 36px auto; max-width: 800px; }
.lp-pain-text { font-size: 19px; color: var(--text); line-height: 1.6; font-weight: 500; }

.lp-features-section { padding: 50px 0; }
.lp-features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px; margin-top: 28px;
}
.lp-feature {
  padding: 22px; animation: lpFeatureIn 0.5s var(--ease-spring) backwards;
  transition: transform 0.3s var(--ease);
}
.lp-feature:hover { transform: translateY(-4px); }
@keyframes lpFeatureIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.lp-feature-icon { font-size: 26px; margin-bottom: 10px; }
.lp-feature-text { font-size: 14px; color: var(--text-secondary); line-height: 1.5; font-weight: 500; }

.lp-how { padding: 50px 36px; margin: 36px auto; max-width: 800px; }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.lp-step { text-align: center; }
.lp-step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; margin: 0 auto 14px;
}
.lp-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.lp-step p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.lp-cta-final { padding: 50px 36px; margin: 36px auto; max-width: 800px; text-align: center; }
.lp-back-link { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.lp-back-link:hover { color: var(--text); }

@media (max-width: 760px) {
  .lp-steps { grid-template-columns: 1fr; gap: 28px; }
  .lp-cta { flex-direction: column; }
  .lp-cta .btn-extract { width: 100%; justify-content: center; }
  .lp-pain, .lp-how, .lp-cta-final { padding: 28px 20px; margin: 24px 16px; }
}

/* ============================================================
   DIRECTORY PAGE
   ============================================================ */
.dir-hero { padding: 60px 0 40px; text-align: center; position: relative; overflow: hidden; }
.dir-list { padding: 20px 24px 60px; max-width: 1100px; margin: 0 auto; }
.dir-category { margin-bottom: 36px; }
.dir-cat-title {
  font-size: 19px; font-weight: 700; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.dir-cat-count {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  background: rgba(255,255,255,0.06); padding: 3px 10px; border-radius: 100px;
}
.dir-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.dir-card {
  padding: 18px; text-decoration: none; display: flex; flex-direction: column;
  gap: 6px; transition: transform 0.2s, border-color 0.2s;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
}
.dir-card:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.dir-card-h { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; }
.dir-card-sub { font-size: 12px; color: var(--text-muted); line-height: 1.5; flex: 1; }
.dir-card-cta { font-size: 13px; font-weight: 600; color: var(--text); }

/* ============================================================
   VIDEO TRANSLATOR
   ============================================================ */
.translate-setup {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px; margin-bottom: 22px;
}
.translate-langs { margin: 18px 0; }
.translate-label { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; display: block; }
.lang-checkboxes {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px;
}
.lang-check {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 13px; border-radius: var(--r-md);
  background: var(--bg-soft); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.2s var(--ease);
  font-size: 14px; color: var(--text-secondary);
}
.lang-check:hover { border-color: var(--border-hover); }
.lang-check input { accent-color: #fff; width: 16px; height: 16px; cursor: pointer; }
.lang-check:has(input:checked) { background: rgba(255,255,255,0.08); border-color: var(--border-hover); color: var(--text); }
.translate-lang-actions { display: flex; gap: 8px; margin-top: 10px; }

.tr-video-head {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px; margin-bottom: 18px;
  display: flex; gap: 18px; align-items: center;
}
.tr-video-head img { width: 180px; aspect-ratio: 16/9; border-radius: var(--r-md); object-fit: cover; }
.tr-video-head h2 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.tr-video-head .meta { font-size: 14px; color: var(--text-muted); }

.tr-player {
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: 18px;
  aspect-ratio: 16/9; border: 1px solid var(--border);
}
.tr-player iframe { width: 100%; height: 100%; border: 0; }

.tr-lang-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tr-lang-tab {
  padding: 9px 16px; border-radius: var(--r-pill);
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s var(--ease);
}
.tr-lang-tab:hover { border-color: var(--border-hover); color: var(--text); }
.tr-lang-tab.active { background: #fff; color: #000; border-color: transparent; }

.tr-lang-content { display: none; }
.tr-lang-content.show { display: block; animation: slideUp 0.3s var(--ease-spring); }

.tr-segments {
  max-height: 400px; overflow-y: auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px;
}
.tr-segments::-webkit-scrollbar { width: 5px; }
.tr-segments::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 6px; }
.tr-seg { padding: 8px 4px; border-bottom: 1px solid var(--border); }
.tr-seg:last-child { border-bottom: none; }
.tr-seg .ts { font-size: 12px; color: var(--text); font-family: ui-monospace, monospace; font-weight: 600; }
.tr-seg .text { font-size: 14px; color: var(--text); margin-top: 4px; line-height: 1.6; }

.tr-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tr-error-lang { color: #f87171; font-size: 14px; padding: 12px; }
