* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0a0f1c;
  background-image:
    linear-gradient(135deg, transparent 49.5%, rgba(56, 189, 248, 0.04) 49.5%, rgba(56, 189, 248, 0.04) 50.5%, transparent 50.5%),
    linear-gradient(180deg, #0a0f1c 0%, #111827 100%);
  color: #e2e8f0;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

.brand {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  color: #e2e8f0;
  padding: 8px 18px;
  border: 1px solid #38bdf8;
  margin-bottom: 24px;
  background: rgba(56, 189, 248, 0.06);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.brand-accent {
  color: #38bdf8;
}

h1 {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
}

.dropzone {
  border: 2px dashed #334155;
  padding: 50px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(30, 41, 59, 0.5);
  margin-bottom: 24px;
  position: relative;
}

.dropzone::before,
.dropzone::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #38bdf8;
}

.dropzone::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.dropzone::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

.dropzone:hover, .dropzone.drag-over {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.05);
}

.dropzone-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  color: #64748b;
}

.dropzone-text {
  font-size: 1rem;
  margin-bottom: 6px;
}

.link {
  color: #38bdf8;
  text-decoration: underline;
}

.dropzone-hint {
  color: #64748b;
  font-size: 0.85rem;
}

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(30, 41, 59, 0.5);
  padding: 12px 14px;
  border: 1px solid #334155;
}

.option span {
  font-size: 0.85rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.option select {
  background: #0a0f1c;
  color: #e2e8f0;
  border: 1px solid #334155;
  padding: 8px 10px;
  font-size: 0.9rem;
  cursor: pointer;
}

.option-check {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 41, 59, 0.5);
  padding: 14px;
  border: 1px solid #334155;
  cursor: pointer;
  font-size: 0.9rem;
}

.option-check input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #38bdf8;
}

.file-info {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-left: 3px solid #38bdf8;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.btn-primary {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  color: white;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.progress {
  margin-top: 24px;
}

.progress-bar {
  height: 8px;
  background: #1e293b;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid #334155;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  width: 0;
  transition: width 0.3s;
}

.progress-text {
  font-size: 0.85rem;
  color: #94a3b8;
  text-align: center;
}

.results {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-item {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid #334155;
  border-left: 3px solid #38bdf8;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.result-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: #0a0f1c;
  border: 1px solid #334155;
}

.result-info {
  flex: 1;
  min-width: 0;
}

.result-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-size {
  font-size: 0.8rem;
  color: #94a3b8;
}

.btn-download {
  padding: 10px 20px;
  background: #10b981;
  color: white;
  border: none;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.btn-download:hover {
  background: #059669;
}

.hidden {
  display: none !important;
}

footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.8rem;
  color: #64748b;
}

.footer-brand {
  margin-top: 8px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #38bdf8;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .options { grid-template-columns: 1fr; }
  h1 { font-size: 1.6rem; }
  .brand { font-size: 0.75rem; letter-spacing: 0.25em; }
}
