/* ============================================================
   upload.css — Upload page styles
   ============================================================ */

.upload-page { padding: 16px 0 32px; }

.upload-card {
  max-width: 620px;
  margin: 0 auto;
}

/* Drop zone */
.drop-zone {
  border: 2px dashed rgba(0,180,216,0.45);
  border-radius: var(--r-xl);
  padding: 40px 24px;
  text-align: center;
  background: rgba(0,212,255,0.04);
  transition: var(--t-mid);
  cursor: pointer;
  position: relative;
  margin-bottom: 20px;
}
.drop-zone.drag-over {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.1);
  box-shadow: 0 0 0 4px rgba(0,212,255,0.18);
}
.drop-icon { font-size: 3rem; margin-bottom: 10px; }
.drop-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.drop-sub { font-size: 0.82rem; color: var(--text-muted); }
.drop-zone input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
}

/* Preview */
.video-preview {
  display: none;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 20px;
  background: #000;
  aspect-ratio: 16/9;
}
.video-preview.show { display: block; }
.video-preview video { width:100%; height:100%; }

/* Thumbnail upload */
.thumb-upload {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.thumb-preview {
  width: 100px; height: 60px;
  border-radius: var(--r-md);
  background: var(--aqua-pale);
  border: var(--glass-border-subtle);
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 1.5rem;
}
.thumb-preview img { width:100%; height:100%; object-fit:cover; }

/* Progress bar */
.upload-progress {
  display: none;
  margin: 16px 0;
}
.upload-progress.show { display: block; }
.progress-bar {
  height: 8px;
  border-radius: var(--r-pill);
  background: rgba(0,180,216,0.15);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--grad-btn);
  width: 0;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(0,212,255,0.5);
}
.progress-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 5px;
  text-align: center;
}

/* Tags input */
.tags-input-wrap { position: relative; }
.tags-display {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 6px 8px;
  min-height: 42px;
  border-radius: var(--r-md);
  border: var(--glass-border-subtle);
  background: rgba(255,255,255,0.55);
  cursor: text;
}
.tag-chip {
  display: flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(0,180,216,0.18);
  color: var(--cyan-dark);
}
.tag-chip button {
  color: var(--cyan-dark); font-size: 12px; line-height: 1;
  opacity: 0.7;
}
.tag-chip button:hover { opacity: 1; }
.tags-input {
  border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 0.88rem;
  color: var(--text-primary); min-width: 80px;
}