* { box-sizing: border-box; }
html, body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #0c0f14; color: #f4f7fb; }
body { min-height: 100vh; }
.wrap { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0; }
.card { background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 24px; margin-bottom: 18px; box-shadow: 0 20px 70px rgba(0,0,0,.28); }
.hero { padding: 34px 28px; }
.eyebrow { color: #8ee4bd; text-transform: uppercase; font-size: 12px; letter-spacing: .14em; font-weight: 800; margin: 0 0 10px; }
h1 { font-size: clamp(42px, 7vw, 76px); line-height: .9; margin: 0 0 14px; letter-spacing: -0.06em; }
.sub { color: #b9c2d3; font-size: 17px; line-height: 1.55; margin: 0; max-width: 720px; }
.drop { display: grid; place-items: center; min-height: 180px; border: 2px dashed rgba(142,228,189,.45); border-radius: 20px; background: rgba(142,228,189,.05); cursor: pointer; text-align: center; transition: .15s ease; padding: 24px; }
.drop:hover, .drop.dragover { border-color: #8ee4bd; background: rgba(142,228,189,.1); }
.drop input { display: none; }
.dropTitle { display: block; font-size: 22px; font-weight: 800; }
.dropHint { display: block; margin-top: 8px; color: #b9c2d3; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
label { color: #dce4f3; font-weight: 700; font-size: 14px; }
select, input[type="range"] { width: 100%; margin-top: 8px; }
select { height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: #141924; color: #fff; padding: 0 12px; font-size: 15px; }
#qualityValue { display: inline-block; margin-top: 6px; color: #b9c2d3; font-weight: 700; }
.btn { width: 100%; height: 56px; border: 0; border-radius: 16px; background: #8ee4bd; color: #07110d; font-weight: 900; font-size: 17px; cursor: pointer; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.ghost { border: 1px solid rgba(255,255,255,.16); background: transparent; color: #fff; border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.ghost:disabled { opacity: .4; cursor: not-allowed; }
.small { color: #8f9bad; font-size: 13px; line-height: 1.5; margin: 14px 0 0; }
.resultsHead { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h2 { margin: 0; font-size: 24px; }
.status { color: #b9c2d3; margin: 18px 0; }
.resultItem { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; margin-bottom: 10px; background: rgba(255,255,255,.04); }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; background: #111722; }
.meta { min-width: 0; }
.name { font-weight: 850; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info { color: #9ba8bb; font-size: 13px; margin-top: 5px; }
a.download { color: #07110d; background: #8ee4bd; text-decoration: none; padding: 11px 14px; border-radius: 12px; font-weight: 900; white-space: nowrap; }
.error { color: #ff9e9e; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } .resultItem { grid-template-columns: 56px 1fr; } .thumb { width: 56px; height: 56px; } a.download { grid-column: 1 / -1; text-align: center; } }
