/*
 * Restyle by editing the CSS variables below, or replace this whole file — the only
 * contract this page depends on is the JSON shape returned by /api/footage/:token
 * (see script.js) and /theme.json. Nothing else is load-bearing.
 */
:root {
  --brand-color: #2b2f38;
  --bg: #f4f5f7;
  --card-bg: #ffffff;
  --text: #1a1c20;
  --text-muted: #7a7f8a;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

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

.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--brand-color);
  padding: 20px 32px;
}

.page-header .logo {
  height: 28px;
}

.page-header .company-name {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.app {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 24px;
}

.loading,
.error {
  text-align: center;
  color: var(--text-muted);
  padding: 64px 0;
  font-size: 15px;
}

.meta {
  margin-bottom: 24px;
}

.meta h1 {
  font-size: 20px;
  margin: 0 0 4px;
}

.meta .expiry {
  font-size: 13px;
  color: var(--text-muted);
}

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

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card .thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e4e6ea;
  display: block;
}

.card .card-body {
  padding: 10px 12px;
}

.card .filename {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0 0 8px;
}

.card .download {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: var(--brand-color);
  border-radius: 6px;
  padding: 6px 12px;
  text-decoration: none;
}

.page-footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--text-muted);
}
