:root {
  --gold: #b8912f;
  --gold-light: #e6c974;
  --gold-dark: #8a6c1f;
  --cream: #fdf8ef;
  --cream-dark: #f3e9d2;
  --ink: #3a2f1d;
  --muted: #8a7a5c;
  --ok: #4c7a4c;
  --err: #a34a3f;
  font-size: 17px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wrap {
  width: 100%;
  max-width: 480px;
  padding: 2rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ornament {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.4rem;
  margin-bottom: 0.6rem;
}
.ornament a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.orn-main {
  font-size: 2rem;
  color: var(--gold);
}
.orn-side {
  font-size: 1.2rem;
  color: var(--gold-light);
}
.orn-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.5rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

h1.names {
  font-size: 2.1rem;
  font-weight: 400;
  margin: 0 0 0.15rem;
  color: var(--gold-dark);
  line-height: 1.25;
}

.subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--cream-dark);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 6px 24px rgba(138, 108, 31, 0.08);
}

.lead {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  border: 2px dashed var(--gold-light);
  border-radius: 14px;
  padding: 2.25rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--cream);
}
.dropzone.drag {
  border-color: var(--gold);
  background: #fbf1d8;
}
.dropzone-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.dropzone-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
}
.dropzone-hint {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  max-width: 100%;
}

input[type="file"] { display: none; }

.btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: inline-block;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1.25rem;
  box-shadow: 0 4px 14px rgba(184, 145, 47, 0.35);
}
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.secondary {
  background: none;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold-light);
  box-shadow: none;
}
.btn.danger {
  background: none;
  color: var(--err);
  border: 1.5px solid var(--err);
  box-shadow: none;
}

.file-list {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.9rem;
  max-height: 140px;
  overflow-y: auto;
}
.file-list div { padding: 0.15rem 0; }

.progress-wrap {
  display: none;
  width: 100%;
  margin-top: 1.1rem;
}
.progress-wrap.active { display: block; }
.progress-track {
  width: 100%;
  height: 10px;
  background: var(--cream-dark);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  transition: width 0.15s ease-out;
}
.progress-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: var(--gold-dark);
  text-align: center;
  margin-top: 0.4rem;
}

.status {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  display: none;
}
.status.ok { display: block; background: #edf5ed; color: var(--ok); }
.status.err { display: block; background: #f7e9e7; color: var(--err); }

input[type="text"] {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1.5px solid var(--cream-dark);
  font-size: 1.4rem;
  letter-spacing: 0.3em;
  text-align: center;
  margin-bottom: 0.5rem;
}

.error-msg {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--err);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer-note {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2rem;
}

/* galeria */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  width: 100%;
  margin-top: 1rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream-dark);
}
.gallery-download {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  text-decoration: none;
  z-index: 2;
}
.gallery-item img, .gallery-item video {
  width: 100%; height: 100%; object-fit: cover;
}

/* panel moderacji */
.admin-list { width: 100%; text-align: left; }
.admin-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cream-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.admin-thumb {
  width: 64px; height: 64px; border-radius: 8px; overflow: hidden;
  background: var(--cream-dark); flex-shrink: 0;
}
.admin-thumb img, .admin-thumb video { width: 100%; height: 100%; object-fit: cover; }
.admin-meta { flex: 1; font-size: 0.8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-actions { display: flex; gap: 0.4rem; }
.admin-actions button {
  font-family: inherit; border: none; border-radius: 8px; padding: 0.4rem 0.7rem;
  font-size: 0.85rem; cursor: pointer;
}
.admin-actions .approve { background: var(--ok); color: #fff; }
.admin-actions .reject { background: #eee; color: var(--err); }

.music-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--cream-dark);
}
.music-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.section-title {
  width: 100%; text-align: left; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700; color: var(--gold-dark); margin: 1.5rem 0 0.5rem;
}
