:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .08);
  --accent: #0071e3;
  --accent-soft: rgba(0, 113, 227, .1);
  --ok: #1f9d55;
  --ok-soft: rgba(52, 199, 89, .14);
  --warn: #b25e00;
  --warn-soft: rgba(255, 159, 10, .16);
  --bad: #d70015;
  --bad-soft: rgba(255, 59, 48, .12);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 28px rgba(0, 0, 0, .06);
  --radius: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --card: #1c1c1e;
    --fg: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, .1);
    --accent: #2997ff;
    --accent-soft: rgba(41, 151, 255, .16);
    --ok: #30d158;
    --ok-soft: rgba(48, 209, 88, .16);
    --warn: #ffb340;
    --warn-soft: rgba(255, 179, 64, .16);
    --bad: #ff6961;
    --bad-soft: rgba(255, 105, 97, .16);
    --shadow: 0 0 0 1px rgba(255, 255, 255, .06);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; margin: 0; }
.muted { color: var(--muted); margin: 0; }
.small { font-size: 14px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 980px; margin: 0 auto; padding: 0 16px; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.brand img { border-radius: 6px; }
.nav-note { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.nav-note svg { width: 15px; height: 15px; }

main { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* hero */
.hero { text-align: center; padding: 64px 0 40px; }
.hero h1 { font-size: clamp(36px, 6.4vw, 60px); line-height: 1.06; letter-spacing: -.028em; font-weight: 700; }
.hero p { max-width: 600px; margin: 18px auto 0; font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); letter-spacing: -.01em; }

/* cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.inputs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.inputs > .card, .slot { min-width: 0; }
.drop { padding: 24px; display: flex; flex-direction: column; gap: 18px; cursor: pointer; outline: none; transition: transform .2s ease, box-shadow .2s ease; position: relative; }
.drop:focus-visible { box-shadow: var(--shadow), 0 0 0 3px var(--accent-soft), 0 0 0 1.5px var(--accent); }
.drop.over { transform: scale(1.012); box-shadow: var(--shadow), 0 0 0 2px var(--accent); }
.card-head { display: flex; gap: 14px; align-items: flex-start; }
.card-head h2 { font-size: 21px; letter-spacing: -.015em; font-weight: 600; }
.card-head p { font-size: 15px; margin-top: 2px; }
.step { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 15px; margin-top: 1px; }
.drop.done .step { background: var(--ok-soft); color: var(--ok); }
.drop.error .step { background: var(--bad-soft); color: var(--bad); }

.slot { min-height: 148px; border-radius: 16px; border: 1.5px dashed var(--line); display: flex; transition: border-color .2s, background .2s; }
.drop:hover .slot, .drop.over .slot { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 3%, transparent); }
.slot-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; text-align: center; padding: 16px; }
.slot-empty svg { width: 36px; height: 36px; stroke-width: 1.4; color: var(--accent); }
.slot-empty u { color: var(--accent); text-decoration: none; }
.slot.filled { border-style: solid; border-color: transparent; background: color-mix(in srgb, var(--fg) 3.5%, transparent); }

.file { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.file-top { display: flex; align-items: center; gap: 10px; }
.file-name { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.file-size { font-size: 14px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.file-x { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 0; }
.file-x:hover { color: var(--fg); }
.file-x svg { width: 14px; height: 14px; stroke-width: 2.2; }
.status { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.4; }
.status svg { flex: none; width: 17px; height: 17px; stroke-width: 2; margin-top: 1px; }
.status.ok { color: var(--ok); }
.status.warn { color: var(--warn); }
.status.bad { color: var(--bad); }
.status.busy { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 3px 10px; border-radius: 99px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* action */
.action { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 0 40px; text-align: center; }
.btn { appearance: none; border: 0; border-radius: 99px; padding: 12px 26px; font: inherit; font-size: 17px; font-weight: 500; cursor: pointer; background: color-mix(in srgb, var(--fg) 7%, transparent); color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s, transform .1s, opacity .2s; min-height: 46px; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn:disabled { opacity: .35; cursor: default; transform: none; }
#repairBtn { min-width: 200px; }
.link { border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; padding: 4px; }
.action .muted { max-width: 520px; }

.progress { width: min(440px, 100%); display: flex; flex-direction: column; gap: 8px; }
.bar { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--fg) 9%, transparent); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .15s linear; }
.progress-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* result */
.result { scroll-margin-top: 72px; padding: 28px; display: flex; flex-direction: column; gap: 22px; margin-bottom: 24px; animation: rise .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.result-head { display: flex; gap: 14px; align-items: center; }
.result-head > div { min-width: 0; }
#resultSub { overflow-wrap: anywhere; }
.result-head h2 { font-size: 26px; letter-spacing: -.02em; font-weight: 700; }
.badge { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.badge svg { width: 24px; height: 24px; stroke-width: 2.6; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stats:empty { display: none; }
.result { min-width: 0; }
.stat { padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--fg) 3.5%, transparent); min-width: 0; }
.stat b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { font-size: 13px; color: var(--muted); }
.meter { height: 4px; border-radius: 99px; background: color-mix(in srgb, var(--fg) 9%, transparent); margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ok); border-radius: inherit; }
.preview { border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.preview video { width: 100%; height: 100%; display: block; }
.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.notes:empty { display: none; }
.notes li { display: flex; gap: 8px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.notes li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); margin-top: 7px; }
.notes li.info::before { background: var(--accent); }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* how */
.how { padding: 56px 0 24px; border-top: 1px solid var(--line); margin-top: 24px; }
.how > h2 { font-size: 32px; letter-spacing: -.02em; text-align: center; margin-bottom: 32px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-grid > div { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.how-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; }
.how h3 { font-size: 18px; letter-spacing: -.01em; margin: 14px 0 8px; font-weight: 600; }
.how p { font-size: 15px; color: var(--muted); margin: 0; }
.support { text-align: center; max-width: 640px; margin: 28px auto 0; }

.foot { text-align: center; padding: 32px 16px 48px; font-size: 13px; color: var(--muted); }
.foot p { margin: 0; }

.drop-overlay { position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--accent) 12%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; pointer-events: none; }
.drop-overlay div { font-size: 28px; font-weight: 600; color: var(--accent); background: var(--card); padding: 18px 34px; border-radius: 99px; box-shadow: var(--shadow); }
.drop-overlay[hidden] { display: none; }

.foot a { color: var(--accent); text-decoration: none; white-space: nowrap; }
.foot a:hover { text-decoration: underline; }

.consent { position: fixed; z-index: 40; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(620px, calc(100% - 32px)); background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-radius: 20px; box-shadow: 0 10px 40px rgba(0, 0, 0, .18), 0 0 0 1px var(--line); padding: 16px 18px; display: flex; align-items: center; gap: 16px; animation: rise .4s cubic-bezier(.2, .8, .2, 1); }
.consent p { margin: 0; font-size: 14px; line-height: 1.45; flex: 1; }
.consent-actions { display: flex; gap: 8px; flex: none; }
.consent .btn { font-size: 15px; padding: 8px 18px; min-height: 38px; }
@media (max-width: 560px) {
  .consent { flex-direction: column; align-items: stretch; }
  .consent-actions .btn { flex: 1; }
}

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .inputs { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 28px; }
  .nav-note { display: none; }
  .result { padding: 20px; }
  .drop { padding: 20px; }
  .result-actions { flex-direction: column; }
  .result-actions .btn { width: 100%; }
}
/* isteğe bağlı etiketi, çoklu dosya listesi */
.optional { display: inline-block; vertical-align: 3px; margin-left: 6px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); padding: 2px 8px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); }
.slot.filled { flex-direction: column; }
.slot.multi .file + .file { border-top: 1px solid var(--line); }
.slot.multi .file { padding: 12px 18px; }
.add-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: 0 12px 10px; padding: 6px 10px; border: 0; border-radius: 99px; background: none; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; }
.add-more:hover { background: var(--accent-soft); }
.add-more svg { width: 16px; height: 16px; stroke-width: 2.2; }

/* sonuç listesi */
.out-list { list-style: none; margin: 0; padding: 0; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.out-list li { display: flex; align-items: center; min-width: 0; }
.out-list li + li { border-top: 1px solid var(--line); }
.out-row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 0; background: none; color: inherit; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.out-row:hover { background: color-mix(in srgb, var(--fg) 3%, transparent); }
.out-list li:has([aria-pressed="true"]) { background: var(--accent-soft); }
.out-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.out-dot.warn { background: var(--warn); }
.out-dot.bad { background: var(--bad); }
.out-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.out-meta { flex: none; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.out-dl { flex: none; width: 44px; height: 44px; display: grid; place-items: center; color: var(--accent); border-radius: 50%; margin-right: 6px; }
.out-dl:hover { background: var(--accent-soft); }
.out-dl svg { width: 20px; height: 20px; stroke-width: 2; }
.detail-title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; margin-bottom: -8px; }

/* sss */
.faq { padding: 48px 0 16px; max-width: 760px; margin: 0 auto; }
.faq > h2 { font-size: 32px; letter-spacing: -.02em; text-align: center; margin-bottom: 24px; }
.faq details { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; position: relative; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq summary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1.5px var(--accent); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .out-meta { display: none; }
  .faq > h2 { font-size: 26px; }
}
/* klasör */
.folder { margin-top: 20px; padding: 20px 24px; display: flex; align-items: center; gap: 18px; }
.folder > svg { flex: none; width: 40px; height: 40px; stroke-width: 1.4; color: var(--accent); }
.folder > div { flex: 1; min-width: 0; }
.folder h2 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.folder p { font-size: 15px; margin-top: 2px; }
.folder p b { color: var(--fg); font-weight: 600; }
.folder p:empty { display: none; }
.folder .btn { flex: none; }
.detail { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.preview.audio { aspect-ratio: auto; height: 54px; background: none; }
@media (max-width: 760px) {
  .folder { flex-direction: column; align-items: stretch; text-align: left; padding: 20px; }
  .folder > svg { display: none; }
  .folder .btn { width: 100%; }
}@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
