/* Album Fulan — shared look. Dark, warm, a little "film". */
:root {
  --bg: #141210;
  --panel: #1e1b18;
  --line: #2d2925;
  --text: #f1ebe2;
  --muted: #a89e91;
  --accent: #e0a458;      /* amber, like a date stamp */
  --accent-2: #c9704a;
  --ok: #7fb77e;
  --err: #e07a6a;
  --radius: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, .serif { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 8vw, 3.2rem); line-height: 1.1; margin: 0 0 .4rem; }
h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
h2 { font-size: 1.35rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
a { color: var(--accent); }

.wrap { max-width: 640px; margin: 0 auto; padding: 24px 18px 48px; }
.center { text-align: center; }

.nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.brand { font-family: "Playfair Display", Georgia, serif; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
.nav a.link { color: var(--muted); text-decoration: none; font-size: .95rem; margin-left: 14px; }
.nav a.link:hover { color: var(--text); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--text); color: #14110e; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: transform .08s ease, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.accent { background: var(--accent); color: #1a1208; }
.btn.danger { background: transparent; color: var(--err); border-color: var(--err); }
.btn[disabled] { opacity: .45; pointer-events: none; }

input[type=text], input[type=password] {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: #0f0d0b; color: var(--text); font-size: 1rem; outline: none;
}
input:focus { border-color: var(--accent); }
label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }

.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }

.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.pill.on { color: var(--ok); border-color: var(--ok); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.tile { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #0f0d0b; cursor: pointer; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .35s; }
.tile img.ready { opacity: 1; }
.tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: .75rem; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #2a2521; color: var(--text); border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 999px; font-size: .9rem; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50;
}
.toast.show { opacity: 1; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,.94); display: none; flex-direction: column; z-index: 40; }
.lb.open { display: flex; }
.lb img { flex: 1; min-height: 0; object-fit: contain; width: 100%; }
.lb .bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 10px; }
.lb .bar .btn { padding: 10px 16px; font-size: .9rem; }

/* film-frame flourish */
.film {
  position: relative; border-radius: 6px; background: #0a0908; padding: 14px 10px;
}
.film::before, .film::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(90deg, transparent 0 6px, #2a2521 6px 14px, transparent 14px 18px);
}
.film::before { top: 2px; } .film::after { bottom: 2px; }
