:root {
  --black: #000000;
  --yellow: #ffcb0e;
  --gray: #a1a1a1;
  --dark: #3a3a3a;
  --white: #ffffff;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Poppins, Arial, sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(255, 203, 14, 0.16), transparent 32rem),
    linear-gradient(135deg, #000, #181818 55%, #2a2a2a);
  min-height: 100vh;
}

.app {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.hero { margin-bottom: 24px; }

.eyebrow {
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
}

.intro {
  color: #d9d9d9;
  max-width: 720px;
  line-height: 1.6;
  font-size: 1.05rem;
}

.panel, .card {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 203, 14, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

.panel { padding: 18px; }

.dropzone {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  min-height: 260px;
  border: 2px dashed rgba(255, 203, 14, 0.75);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 28px;
  transition: 0.2s ease;
}

.dropzone:hover, .dropzone.dragover {
  background: rgba(255, 203, 14, 0.08);
  transform: translateY(-1px);
}

.dropzone input { display: none; }

.drop-title {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 800;
}

.drop-subtitle { color: var(--gray); }

.button, button, .download {
  border: 0;
  border-radius: var(--radius);
  background: var(--yellow);
  color: #000;
  font-weight: 800;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
}

button:disabled { opacity: 0.45; cursor: not-allowed; }

.secondary {
  background: transparent;
  color: var(--yellow);
  border: 1px solid rgba(255, 203, 14, 0.7);
}

.settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}

.settings label {
  display: grid;
  gap: 8px;
  color: #f4f4f4;
  font-weight: 700;
}

.settings input[type="number"] {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid #555;
  background: #111;
  color: #fff;
}

.settings input[type="range"] {
  width: 100%;
  accent-color: var(--yellow);
}

.settings small { color: var(--gray); font-weight: 400; }

.checkbox {
  grid-column: 1 / -1;
  display: flex !important;
  align-items: center;
  gap: 10px !important;
}

.checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--yellow);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.card {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: #111;
}

.meta {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.45;
}

.filename {
  color: #fff;
  font-weight: 800;
  word-break: break-word;
}

.error { border-color: rgba(255, 90, 90, 0.8); }

@media (max-width: 720px) {
  .app { width: min(100% - 20px, 1100px); padding: 28px 0; }
  .settings { grid-template-columns: 1fr; }
  .dropzone { min-height: 220px; }
  .actions button { width: 100%; }
}
