:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-alt: #1f2937;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --error: #f87171;
  --success: #4ade80;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #020617, var(--bg));
  color: var(--text);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.panel {
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.35);
}

h1, h2 {
  margin-top: 0;
}

p {
  color: var(--muted);
}

#upload-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.file-picker {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--panel-alt);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  cursor: pointer;
  min-width: 220px;
}

.file-picker input {
  display: none;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #082f49;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.status {
  margin-top: 12px;
  min-height: 24px;
  color: var(--muted);
}

.status.error { color: var(--error); }
.status.success { color: var(--success); }

.preview-panel img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #020617;
  max-height: 320px;
  object-fit: cover;
  display: block;
  margin-bottom: 12px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.gallery-item {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 12px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.gallery-item a {
  color: var(--accent);
  word-break: break-all;
}

.meta {
  margin: 0;
}
