:root {
  --bg: #12131a;
  --bg-soft: #191b24;
  --card: #1c1f2b;
  --line: #2a2e3d;
  --text: #edeef2;
  --text-muted: #9497ab;
  --amber: #e8a33d;
  --amber-soft: rgba(232, 163, 61, 0.14);
  --green: #4caf7d;
  --red: #e8615d;
  --radius: 14px;
  --font-display: "Vazirmatn", "Tahoma", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(120% 140% at 50% -10%, #22242f 0%, var(--bg) 55%);
  color: var(--text);
  font-family: var(--font-display);
  min-height: 100vh;
  line-height: 1.6;
}

/* نوار سوراخ‌های فیلم — یادآور حاشیه نگاتیو سینمایی */
.sprocket-strip {
  height: 10px;
  width: 100%;
  background-image: repeating-linear-gradient(
    90deg,
    var(--amber) 0 6px,
    transparent 6px 20px
  );
  opacity: 0.55;
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

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

.reel-icon {
  color: var(--amber);
  display: inline-flex;
  margin-bottom: 10px;
}

.header h1 {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.drop-zone {
  display: block;
  cursor: pointer;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.drop-zone:hover,
.drop-zone:focus-visible {
  border-color: var(--amber);
  background: var(--amber-soft);
  outline: none;
}

.drop-zone.is-dragover {
  border-color: var(--amber);
  background: var(--amber-soft);
  transform: scale(1.01);
}

.drop-zone__inner {
  padding: 34px 18px;
  text-align: center;
}

.film-frame {
  display: inline-flex;
  gap: 6px;
  padding: 8px 14px;
  border: 2px solid var(--text-muted);
  border-radius: 6px;
  margin-bottom: 14px;
}

.film-frame__hole {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--text-muted);
  display: inline-block;
}

.drop-zone__title {
  font-weight: 600;
  font-size: 1.02rem;
  margin: 0 0 4px;
}

.drop-zone__hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.file-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.file-preview__icon {
  font-size: 1.4rem;
}

.file-preview__info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.file-preview__name {
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-preview__size {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.file-preview__remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.file-preview__remove:hover {
  color: var(--red);
  background: rgba(232, 97, 93, 0.12);
}

.caption-label {
  display: block;
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.caption-input {
  width: 100%;
  resize: vertical;
  min-height: 54px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
}

.caption-input:focus {
  outline: none;
  border-color: var(--amber);
}

.submit-btn {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: var(--amber);
  color: #221a0d;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.submit-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}

.submit-btn:active:not(:disabled) {
  transform: scale(0.99);
}

.submit-btn:disabled {
  background: var(--line);
  color: var(--text-muted);
  cursor: not-allowed;
}

.progress-wrap {
  margin-top: 16px;
}

.progress-track {
  height: 8px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--amber);
  transition: width 0.15s ease;
}

.progress-text {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.status-box {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  text-align: center;
}

.status-box.success {
  background: rgba(76, 175, 125, 0.14);
  color: var(--green);
  border: 1px solid rgba(76, 175, 125, 0.3);
}

.status-box.error {
  background: rgba(232, 97, 93, 0.14);
  color: var(--red);
  border: 1px solid rgba(232, 97, 93, 0.3);
}

.footer {
  text-align: center;
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

@media (max-width: 420px) {
  .page {
    padding: 28px 14px 40px;
  }
  .header h1 {
    font-size: 1.4rem;
  }
  .drop-zone__inner {
    padding: 26px 12px;
  }
}
