:root {
  --bg-top: #15161a;
  --bg-bottom: #0d0e11;
  --card: rgba(33, 35, 41, 0.78);
  --card-soft: rgba(27, 29, 34, 0.72);
  --text: #f3f4f7;
  --muted: #b8bdc7;
  --accent: #0a84ff;
  --accent-strong: #0066d6;
  --error-bg: rgba(255, 69, 58, 0.16);
  --error-text: #ff8e87;
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 42px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 8% -12%, rgba(10, 132, 255, 0.22), transparent 60%),
    radial-gradient(900px 520px at 95% 18%, rgba(255, 149, 0, 0.12), transparent 68%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  min-height: 100vh;
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.2rem 1rem 1.8rem;
}

h1 {
  margin: 0.1rem 0 0.45rem;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle {
  margin-top: 0;
  margin-bottom: 1.2rem;
  color: var(--muted);
  line-height: 1.4;
}

.upload-form {
  display: grid;
  gap: 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1rem 1.1rem;
  margin-bottom: 1.05rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.file-label {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.92rem;
}

input[type="file"] {
  width: 100%;
  color: var(--muted);
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem;
}

button {
  border: none;
  border-radius: 11px;
  padding: 0.82rem;
  font-size: 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(10, 132, 255, 0.32);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  background: var(--accent-strong);
}

button:active {
  transform: translateY(1px);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.error {
  color: var(--error-text);
  background: var(--error-bg);
  margin-bottom: 1rem;
}

.download-form {
  margin-bottom: 0.9rem;
}

.download-btn {
  width: 100%;
  background: #3a3e47;
  box-shadow: none;
}

.download-btn:hover {
  background: #4a4f5a;
}

.metadata-list {
  display: grid;
  gap: 0.6rem;
}

.row {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem;
  background: var(--card-soft);
}

.key {
  font-weight: 700;
  font-size: 0.92rem;
  color: #d9deea;
}

.value {
  margin-top: 0.2rem;
  color: var(--muted);
  word-break: break-word;
}

@media (min-width: 700px) {
  .row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0.9rem;
    align-items: start;
  }

  .value {
    margin-top: 0;
  }
}
