:root {
  --bg: #f4efe5;
  --panel: #fffaf2;
  --line: #d8ccb8;
  --text: #241b14;
  --muted: #6f6258;
  --accent: #b8541b;
  --accent-strong: #8a3f14;
  --ok: #256f4b;
  --error: #9e2a2b;
  --shadow: 0 20px 50px rgba(36, 27, 20, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(184, 84, 27, 0.14), transparent 28%),
    linear-gradient(180deg, #f7f1e8 0%, var(--bg) 100%);
  color: var(--text);
}

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

.hero {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.subtitle {
  max-width: 700px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

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

.card {
  background: rgba(255, 250, 242, 0.88);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.slot-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.slot-title {
  margin: 0;
  font-size: 1.1rem;
}

.status-badge {
  background: #f2dfd2;
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.slot-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
}

label span,
.helper,
.feedback,
.public-link {
  font-size: 14px;
}

input[type="text"],
input[type="file"] {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
}

.helper {
  min-height: 18px;
  color: var(--muted);
  margin: 0;
}

.feedback {
  min-height: 18px;
  margin: 0;
  font-weight: 600;
}

.feedback[data-type="success"] {
  color: var(--ok);
}

.feedback[data-type="error"] {
  color: var(--error);
}

.actions {
  display: flex;
  gap: 10px;
}

button {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  background: var(--accent);
  color: white;
}

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

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  background: #bca28f;
}

button.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.public-preview {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.public-title {
  margin: 0;
  font-weight: 700;
}

video {
  width: 100%;
  border-radius: 16px;
  background: #120d09;
}

.public-link {
  color: var(--accent-strong);
  font-weight: 700;
}

.modal {
  border: 0;
  padding: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(36, 27, 20, 0.45);
  backdrop-filter: blur(4px);
}

.modal-card {
  width: min(420px, calc(100vw - 24px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.modal-eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.modal-card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.modal-feedback {
  min-height: 18px;
  margin: 0 0 10px;
  font-weight: 600;
}

.modal-feedback[data-type="error"] {
  color: var(--error);
}

.modal-actions {
  margin-top: 16px;
}

@media (max-width: 640px) {
  .page {
    padding: 24px 14px 40px;
  }

  .actions {
    flex-direction: column;
  }
}
