.converter-wrap { text-align: left; }
.converter-wrap h1,
.converter-wrap h2 {
  font-size: 1.75rem;
  margin: 1.5rem 0 0.75rem;
  color: #111;
  background: none;
  -webkit-text-fill-color: unset;
}
.sub { color: var(--muted); margin: 0 0 1.25rem; }

.converter-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  padding: 1.15rem 1.2rem 1.25rem;
  margin: -3.1rem 0 1.5rem;
  position: relative;
  z-index: 2;
}
.field-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}
.url-input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fafafa;
}
.url-input:focus { outline: 2px solid #111; background: #fff; }

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.format-pills { display: flex; gap: 0.35rem; }
.pill {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 7px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.pill.is-on { background: #111; color: #fff; border-color: #111; }
.quality-select {
  border: 1px solid #ddd;
  border-radius: 7px;
  padding: 0.48rem 0.5rem;
  font: inherit;
  background: #fff;
}
.convert-btn {
  margin-left: auto;
  border: 0;
  background: #e31c23;
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.65rem 1.35rem;
  border-radius: 8px;
  cursor: pointer;
}
.convert-btn:disabled { opacity: 0.65; cursor: wait; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.result[hidden],
.error[hidden] { display: none !important; }
.result {
  display: flex;
  gap: 0.85rem;
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  margin: 0.75rem 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.thumb { width: 140px; height: auto; border-radius: 6px; }
.bar { height: 6px; background: #eee; border-radius: 99px; overflow: hidden; margin: 0.4rem 0; }
.bar span { display: block; height: 100%; background: #e31c23; width: 0; }
.download-btn {
  display: inline-block;
  margin-top: 0.4rem;
  background: #111;
  color: #fff;
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  font-weight: 700;
}
.error { color: #b91c1c; }

.seo-block, .how, .quick-answer { color: #333; }
.seo-block h2, .how h2 { font-size: 1.15rem; margin-top: 1.5rem; }
.quick-answer { background: #fff; padding: 0.75rem 1rem; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border: 1px solid #e5e5e5; padding: 0.45rem 0.55rem; text-align: left; font-size: 0.92rem; }

@media (max-width: 640px) {
  .convert-btn { margin-left: 0; width: 100%; }
  .header-inner { flex-direction: column; align-items: flex-start; padding-bottom: 4rem; }
}
