.upload-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
  position: relative;
  overflow: hidden;
}

.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 48px;
  max-width: 600px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

.drop-zone-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
}

.drop-zone {
  width: 100%;
  aspect-ratio: 16 / 7;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.drop-zone.drag-over .drop-icon {
  transform: scale(1.1) translateY(-4px);
  color: var(--accent);
}

.drop-zone::before {
  display: none;
}

.drop-icon {
  width: 52px;
  height: 52px;
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.drop-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
}

.drop-title strong {
  color: var(--text-primary);
}

.drop-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.drop-zone.file-selected {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.file-info {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
}

.drop-zone.file-selected .drop-default { display: none; }
.drop-zone.file-selected .file-info { display: flex; }

.file-name {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.file-thumb {
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.analyze-btn {
  width: 100%;
  max-width: 600px;
  margin-top: 16px;
  padding: 16px 32px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  position: relative;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
  overflow: hidden;
}

.analyze-btn.visible { display: flex; }

.analyze-btn:active { transform: scale(0.98); }

.processing-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px;
}

.processing-overlay.visible { display: flex; }

.processing-scanner {
  width: 280px;
  height: 180px;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
}

.scanner-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.scanner-beam {
  display: none;
}

.processing-info {
  text-align: center;
  max-width: 400px;
}

.processing-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.processing-progress-wrap {
  width: 280px;
  margin: 0 auto;
}

.processing-percentage {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.processing-frames {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

.info-strip {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  margin-top: 32px;
  max-width: 600px;
  width: 100%;
}

.info-card {
  flex: 1;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.info-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.info-card-value {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

#file-input { display: none; }