:root {
  --bg: #f4f7ff;
  --surface: #fff;
  --ink: #0f172a;
  --muted: #5c6678;
  --line: #d8e0f0;
  --accent: #ef5b2a;
  --accent2: #0284c7;
  --shadow: 0 14px 28px rgba(2, 8, 23, 0.08);
  --r1: 16px;
  --r2: 12px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  font-family: "Segoe UI Variable", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1000px 430px at 8% -8%, rgba(2, 132, 199, 0.16), transparent 60%),
    radial-gradient(860px 430px at 100% -5%, rgba(239, 91, 42, 0.16), transparent 60%),
    var(--bg);
  min-height: 100%;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #dde5f4;
  background: rgba(244, 247, 255, 0.9);
  backdrop-filter: blur(8px);
}
.topbar-in {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(130deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 5px rgba(2, 132, 199, .12);
}
nav { display: flex; gap: .5rem; flex-wrap: wrap; }
nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .9rem;
  padding: .4rem .55rem;
  border-radius: 8px;
}
nav a:hover { background: #eaf1ff; color: var(--ink); }
.hero { padding: 3.2rem 0 1.7rem; }
.hero-grid { display: grid; gap: 1rem; grid-template-columns: 1.14fr .86fr; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r1);
  box-shadow: var(--shadow);
}
.hero-main { padding: 1.35rem; }
h1 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1.1;
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  letter-spacing: -.02em;
}
.sub {
  margin: .8rem 0 1rem;
  color: var(--muted);
  font-size: .97rem;
  max-width: 63ch;
}
.cta {
  display: inline-flex;
  text-decoration: none;
  border-radius: 10px;
  padding: .68rem .95rem;
  font-size: .9rem;
  font-weight: 600;
  background: linear-gradient(130deg, var(--accent), #ff814a);
  color: #fff;
  box-shadow: 0 12px 24px rgba(239, 91, 42, .28);
}
.metrics { padding: 1rem; display: grid; gap: .65rem; }
.m {
  border: 1px solid var(--line);
  border-radius: var(--r2);
  background: linear-gradient(#fff, #f8fbff);
  padding: .88rem;
}
.m b { display: block; font-family: "Bahnschrift", "Trebuchet MS", sans-serif; font-size: 1.2rem; }
.m span { color: var(--muted); font-size: .84rem; }
section { padding: 1rem 0 2rem; }
h2 {
  margin: 0;
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
}
.hero, section { content-visibility: auto; contain-intrinsic-size: 1px 700px; }
.lead { margin: .35rem 0 1rem; color: var(--muted); font-size: .94rem; }
.tools { display: grid; gap: .85rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool { padding: .95rem; }
.tool h3 { margin: 0 0 .3rem; font-size: 1rem; }
.tool p { margin: 0; color: var(--muted); font-size: .88rem; }
.tool-link {
  margin-top: .8rem;
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  color: #0b4d81;
}
.download-wrap {
  max-width: 960px;
  margin: 1.8rem auto 2rem;
}
.download-card {
  position: relative;
  padding: 1.2rem;
  border: 1px solid #cad9f2;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 18px 34px rgba(2, 8, 23, 0.1);
  overflow: hidden;
}
.download-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ef5b2a, #0284c7);
}
.download-card h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: .35rem;
}
.download-card .sub {
  font-size: 1.02rem;
  max-width: 72ch;
}
form {
  margin-top: .9rem;
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  align-items: stretch;
}
input[type="url"] {
  flex: 1 1 320px;
  min-width: 0;
  border: 1px solid #cfd8ea;
  border-radius: 12px;
  padding: .84rem .88rem;
  font-size: .98rem;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
select {
  flex: 0 0 190px;
  border: 1px solid #cfd8ea;
  border-radius: 12px;
  padding: .84rem .88rem;
  font-size: .95rem;
  background: #fff;
  color: var(--ink);
}
select:focus {
  outline: 2px solid rgba(2, 132, 199, .2);
  border-color: var(--accent2);
}
input[type="url"]:focus {
  outline: 2px solid rgba(2, 132, 199, .2);
  border-color: var(--accent2);
}
button {
  border: 0;
  border-radius: 12px;
  padding: .84rem 1.1rem;
  background: #0f172a;
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .22);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
button:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(15, 23, 42, .27); }
button:active { transform: translateY(0); }
button[disabled] { opacity: .65; cursor: not-allowed; }
.error-box {
  display: none;
  margin-top: .7rem;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #7f1d1d;
  border-radius: 10px;
  padding: .65rem .75rem;
  font-size: .86rem;
}
.error-box.show { display: block; }
.seo-copy {
  background: #f0f7ff;
  border: 1px solid #cfe4f9;
  border-radius: var(--r2);
  padding: .9rem;
  color: #1f3654;
  font-size: .9rem;
  line-height: 1.45;
}
.faq { display: grid; gap: .5rem; margin-top: .8rem; }
details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: .55rem .7rem;
}
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); font-size: .88rem; margin: .45rem 0 0; }
.note {
  margin-top: 1rem;
  font-size: .8rem;
  color: #45607c;
  border: 1px solid #cce0f6;
  background: #edf6ff;
  border-radius: 10px;
  padding: .7rem;
}
.footer { text-align: center; font-size: .84rem; color: #55657f; padding: .75rem 0 2rem; }
.footer a { color: #1f4f8b; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.download-wrap .tool {
  border-color: #d5e1f3;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.06);
}
.download-wrap .tool h2 {
  margin-bottom: .55rem;
}
.download-wrap .tool p,
.download-wrap .tool li {
  line-height: 1.62;
}
.download-wrap .tool ul,
.download-wrap .tool ol {
  padding-left: 1.15rem;
}
.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all .18s ease;
  pointer-events: none;
  background: #07261b;
  color: #d1fae5;
  border: 1px solid rgba(6, 95, 70, .5);
  border-radius: 11px;
  padding: .68rem .78rem;
  max-width: min(90vw, 330px);
  font-size: .82rem;
}
.toast.show { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 940px) {
  .hero { padding-top: 2.1rem; }
  .hero-grid, .tools { grid-template-columns: 1fr; }
  nav { display: none; }
}
@media (max-width: 540px) {
  .hero-main, .metrics, .tool, .download-card { padding: .88rem; }
  button, .cta { width: 100%; text-align: center; }
  input[type="url"], select { flex-basis: 100%; }
  .download-wrap { margin-top: 1rem; }
  .download-card h1 { font-size: clamp(1.55rem, 8vw, 2rem); }
}

.ad-container{
  display:flex;
  justify-content:center;
  margin:20px 0;
}

.youtube-page .youtube-layout {
  max-width: 980px;
  margin-top: 1.6rem;
  margin-bottom: 2rem;
}

.youtube-page .featured-card {
  position: relative;
  border: 1px solid #c9d6ef;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 20px 40px rgba(2, 8, 23, 0.09);
  overflow: hidden;
}

.youtube-page .featured-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ef5b2a, #0284c7);
}

.youtube-page .eyebrow {
  display: inline-block;
  margin-bottom: .5rem;
  padding: .3rem .62rem;
  font-size: .76rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid #d7e3f8;
  border-radius: 999px;
  color: #25507f;
  background: #f2f8ff;
  font-weight: 700;
}

.youtube-page .quick-points {
  margin: .75rem 0 .65rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.youtube-page .quick-points li {
  font-size: .78rem;
  font-weight: 600;
  color: #1f3f64;
  padding: .34rem .56rem;
  border-radius: 999px;
  border: 1px solid #d6e4fb;
  background: #f3f8ff;
}

.youtube-page .content-section {
  margin-top: 1rem;
  border-color: #d5e1f5;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.youtube-page .content-section h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: .65rem;
}

.youtube-page .content-section h3 {
  margin: 1rem 0 .4rem;
  font-size: 1rem;
  color: #0f2742;
}

.youtube-page .content-section p,
.youtube-page .content-section li {
  line-height: 1.62;
  color: #273449;
}

.youtube-page .content-section ul,
.youtube-page .content-section ol {
  margin: .65rem 0 .8rem;
  padding-left: 1.15rem;
}

.youtube-page .content-section li + li {
  margin-top: .34rem;
}

.youtube-page .content-section code {
  background: #eef4ff;
  border: 1px solid #d6e4fa;
  border-radius: 6px;
  padding: .05rem .32rem;
}

.youtube-page .faq details {
  border-color: #d5e2f5;
  background: #fbfdff;
}

/* Clear, focused downloader section style across tool pages */
.tool-page {
  --tool-accent: #0ea5a4;
  --tool-accent-2: #0b7fc1;
}

.tool-page .download-wrap {
  max-width: 980px;
  margin-top: 1.2rem;
}

.tool-page .tool-breadcrumb {
  margin: 0 0 .85rem;
  color: #5f6e83;
  font-size: .84rem;
}

.tool-page .tool-breadcrumb a {
  color: #305d8e;
  text-decoration: none;
}

.tool-page .download-card {
  padding: 1.3rem 1.15rem 1.05rem;
  border: 1px solid #d4dfef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(2, 8, 23, 0.08);
}

.tool-page .download-card::before {
  background: linear-gradient(90deg, var(--tool-accent), var(--tool-accent-2));
}

.tool-page .download-card h1 {
  text-align: center;
  margin-bottom: .35rem;
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.tool-page .download-card .sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.tool-page form[data-tool] {
  max-width: 760px;
  margin: .85rem auto 0;
  border: 3px solid var(--tool-accent);
  border-radius: 14px;
  background: #fff;
  padding: .38rem;
  gap: .36rem;
}

.tool-page form[data-tool] input[type="url"] {
  border: 0;
  box-shadow: none;
  border-radius: 10px;
  background: #f9fbff;
}

.tool-page form[data-tool] select {
  border: 0;
  border-radius: 10px;
  background: #f1f8ff;
}

.tool-page form[data-tool] button {
  background: linear-gradient(130deg, var(--tool-accent), var(--tool-accent-2));
  box-shadow: none;
  min-width: 160px;
}

.tool-page .tool-terms {
  margin: .5rem auto 0;
  max-width: 760px;
  text-align: center;
  font-size: .86rem;
  color: #5e6d81;
}

.tool-page .tool-terms a {
  color: #2b5c90;
}

.tool-page .tool-shortcuts {
  margin: .9rem auto 0;
  max-width: 860px;
  display: grid;
  gap: .55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-page .tool-shortcuts a {
  text-decoration: none;
  text-align: center;
  padding: .58rem .6rem;
  border-radius: 12px;
  border: 1px solid #d6e4f7;
  background: #f4f9ff;
  color: #24476e;
  font-weight: 600;
  font-size: .88rem;
}

.tool-page .tool-shortcuts a:hover {
  background: #ebf5ff;
}

@media (max-width: 760px) {
  .tool-page .tool-shortcuts {
    grid-template-columns: 1fr;
  }
}

