:root{
  --bg: #f4f2fb;
  --panel: #ffffff;
  --panel-2: #efecf9;
  --line: #e0daf0;
  --accent: #5b3fae;
  --accent-soft: #e6ddf7;
  --accent-dim: #f4f0fb;
  --text: #1e1a2e;
  --muted: #6b6480;
  --muted-2: #9a92ac;
  --good: #2e7d4f;
  --bad: #b3402f;
}


.section-box{
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
}

.label{
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--muted);
}

.dropzone{
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.dragover{ border-color: var(--accent); background: var(--accent-dim); }
.dropzone .icon{ font-size: 28px; margin-bottom: 8px; }
.dropzone .main{ font-size: 14px; font-weight: 600; }
.dropzone .sub{ font-size: 12px; color: var(--muted); margin-top: 4px; }
input[type=file]{ display: none; }

.strip{ display: flex; gap: 10px; overflow-x: auto; padding-top: 14px; flex-wrap: wrap; }
.file-chip{
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 8px 7px 12px;
  font-size: 12px;
}
.file-chip .fname{ max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .fsize{ color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 10.5px; }
.file-chip .remove{
  width: 18px; height: 18px; border-radius: 50%; border: none;
  background: var(--line); color: var(--text); font-size: 11px; cursor: pointer; line-height: 18px; padding: 0;
}

.btns{ display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.app{
  padding: 11px 22px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  font-family: 'Inter', sans-serif;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #9a7bd6);
  transition: filter .15s ease;
}
.app:hover{ filter: brightness(1.08); }
.app:disabled{ opacity: 0.5; cursor: not-allowed; }
.gray{ background: var(--line); color: var(--text); }

.empty-state{ text-align: center; color: var(--muted-2); padding: 26px 10px; font-size: 13.5px; }
.loading{ text-align: center; padding: 26px 10px; color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 13px; }

.result-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.result-card{ background: #fdfcf7; border-radius: 8px; overflow: hidden; color: #241e12; }
.result-card img{ width: 100%; height: 130px; object-fit: cover; display: block; }
.result-info{ padding: 10px 12px; }
.result-info .name{ font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-info .stats{ font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: #6b5f42; margin-top: 3px; display: flex; justify-content: space-between; }
.result-info .dl-btn{
  width: 100%; margin-top: 8px; padding: 7px; border: none; border-radius: 5px;
  background: var(--accent-dim); color: var(--accent); font-size: 11.5px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif;
}
.result-info .dl-btn:hover{ filter: brightness(1.15); }
.result-info .fail{ color: var(--bad); font-size: 11.5px; padding: 8px 0; }

.note{
  margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.6;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px;
}
