
:root {
  --bg: #0c0d0f;
  --panel: #15171b;
  --text: #f4f1ea;
  --muted: #aaa79f;
  --line: rgba(255,255,255,.12);
  --accent: #d6b888;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 44px; height: 44px; border: 1px solid var(--line);
  display: grid; place-items: center; border-radius: 50%;
  font-family: Georgia, serif; letter-spacing: .05em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: Georgia, serif; font-size: 1.05rem; font-weight: 500; }
.brand-text small { color: var(--muted); font-size: .72rem; margin-top: 5px; letter-spacing: .1em; text-transform: uppercase; }

.contact-button {
  border: 1px solid var(--line);
  padding: 10px 17px;
  border-radius: 999px;
  transition: .2s ease;
}
.contact-button:hover { border-color: var(--accent); color: var(--accent); }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.hero { max-width: 800px; padding: 95px 0 55px; }
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  font-weight: 700;
}
.hero h1, .admin-card h1 {
  font-family: Georgia, serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: .98;
  font-weight: 400;
  margin: 18px 0 24px;
}
.hero-copy { color: var(--muted); font-size: 1.1rem; line-height: 1.7; max-width: 620px; }

.category-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 38px;
}
.category-nav a {
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.category-nav a.active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.04);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 24px;
  padding-bottom: 80px;
}
.film-card h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 1.35rem;
  margin: 13px 2px 0;
}
.video-wrap {
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  border-radius: 8px;
}
video { width: 100%; height: 100%; display: block; background: #000; }

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  padding: 70px 24px;
  text-align: center;
  border-radius: 10px;
}
.empty-state h2 { font-family: Georgia, serif; font-weight: 400; font-size: 2rem; }
.empty-state p { color: var(--muted); }

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  padding: 28px;
  font-size: .85rem;
}

.admin-page { min-height: 100vh; display: grid; place-items: center; }
.admin-shell { width: min(620px, calc(100% - 32px)); margin: 30px auto; }
.back-link { color: var(--muted); display: inline-block; margin-bottom: 18px; }
.admin-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  padding: clamp(24px, 5vw, 46px);
}
.admin-card h1 { font-size: clamp(2.6rem, 8vw, 4.5rem); }
.upload-form { display: grid; gap: 20px; margin-top: 30px; }
.upload-form label { display: grid; gap: 9px; color: var(--muted); font-size: .9rem; }
input, select, button {
  width: 100%;
  border: 1px solid var(--line);
  background: #0f1114;
  color: var(--text);
  padding: 13px 14px;
  border-radius: 8px;
  font: inherit;
}
button {
  cursor: pointer;
  background: var(--accent);
  color: #16120d;
  border: 0;
  font-weight: 800;
}
button.secondary { margin-top: 12px; background: transparent; color: var(--muted); border: 1px solid var(--line); }
.alert { padding: 12px 14px; border-radius: 8px; margin-top: 18px; }
.alert.error { background: rgba(255, 84, 84, .12); border: 1px solid rgba(255,84,84,.35); }
.alert.success { background: rgba(96, 209, 134, .12); border: 1px solid rgba(96,209,134,.35); }

@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; }
  .hero { padding-top: 65px; }
  .contact-button { display: none; }
}
