.drop-zone {
  border: 2px dashed var(--border-color);
  border-radius: 2px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
}

.drop-zone:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.drop-zone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.drop-zone-text {
  text-align: center;
  pointer-events: none;
}

.drop-zone-text svg {
  width: 32px;
  height: 32px;
  margin: 0 auto 16px;
  color: var(--text-muted);
}

.drop-zone-text p {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.drop-zone-text span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.6;
}

.gif-main {
  padding: 48px 24px;
}

.gif-header {
  margin-bottom: 48px;
}

.gif-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}

.gif-card {
  padding: 24px;
}

.gif-section-title {
  font-size: 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gif-progress-section {
  padding: 24px;
}

.gif-progress-title {
  font-size: 18px;
  margin-bottom: 16px;
}

.gif-frames-card {
  padding: 24px;
  margin-bottom: 24px;
}

.gif-frames-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.gif-controls-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.progress-bar {
  height: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s ease;
}

.progress-text {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.selection-count {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
}

.frames-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 16px;
}

.frame-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  transition: all 0.2s ease;
}

.frame-card:hover {
  border-color: var(--accent);
}

.frame-card.selected {
  border-color: var(--accent);
  box-shadow: 4px 4px 0 var(--accent-glow);
}

.frame-checkbox {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  accent-color: var(--accent);
  z-index: 10;
}

.frame-number {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: 2px;
}

.frame-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bottom-download-section {
  padding: 24px;
  margin-top: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.bottom-download-section .selection-count {
  margin-bottom: 8px;
}

.bottom-download-section .btn-primary {
  min-width: 200px;
}

.error-overlay {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface);
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  z-index: 1000;
}

@media (max-width: 768px) {
  .drop-zone {
    min-height: 200px;
  }

  .frames-grid {
    grid-template-columns: 1fr;
  }

  .frames-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .frames-controls > div:first-child {
    justify-content: center;
  }

  .frames-controls .btn-primary {
    width: 100%;
  }

  .bottom-download-section .btn-primary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .card-brutal {
    padding: 16px !important;
  }

  .section-title {
    font-size: 16px !important;
    margin-bottom: 16px !important;
  }

  .drop-zone-text svg {
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
  }

  .drop-zone-text p {
    font-size: 14px;
  }

  .drop-zone-text span {
    font-size: 12px;
  }

  .drop-zone {
    min-height: 180px;
  }

  .bottom-download-section {
    padding: 16px !important;
  }
}
