:root {
  --bg: #faf7f2;
  --ink: #3d3630;
  --muted: #8a8078;
  --accent: #b08d6a;
  --accent-dark: #93714f;
  --card: #ffffff;
  --border: #e8e1d8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ---------- Login ---------- */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f4ede4 0%, #faf7f2 50%, #efe6da 100%);
}
.login-card {
  width: min(400px, calc(100vw - 40px));
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(61, 54, 48, 0.08);
  padding: 56px 40px;
  text-align: center;
}
.monogram {
  font-size: 28px;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
}
.monogram.small {
  font-size: 18px;
  margin: 0;
}
.login-card h1 {
  font-weight: normal;
  font-size: 30px;
  margin-bottom: 8px;
}
.subtitle {
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  margin-bottom: 28px;
}
#login-form input {
  width: 100%;
  padding: 13px 16px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}
#login-form input:focus { border-color: var(--accent); }
#login-form button {
  width: 100%;
  margin-top: 12px;
  padding: 13px;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
#login-form button:hover { background: var(--accent-dark); }
.error { margin-top: 14px; color: #b04a3a; font-size: 14px; }

/* ---------- Header / nav ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 0;
}
.site-header nav a {
  font-family: -apple-system, "Helvetica Neue", sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  margin-left: 22px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.site-header nav a.active,
.site-header nav a:hover { color: var(--ink); border-color: var(--accent); }

/* ---------- Layout ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.container h1 {
  font-weight: normal;
  font-size: 34px;
  margin-bottom: 4px;
}

/* ---------- Videos ---------- */
.player-wrap {
  margin-top: 24px;
}
.player-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  display: block;
}
.player-wrap h2 {
  font-weight: normal;
  font-size: 20px;
  margin-top: 14px;
}
.video-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.video-collection-title {
  grid-column: 1 / -1;
  font-weight: normal;
  font-size: 22px;
  margin-top: 16px;
}
.video-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px;
  text-align: left;
  font-family: inherit;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.video-card:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(61, 54, 48, 0.08);
  border-color: var(--accent);
}
.video-card.playing { border-color: var(--accent); }
.video-card .thumb {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 8px;
}
.video-card .v-title { font-size: 17px; }
.video-card .v-dur {
  font-family: -apple-system, sans-serif;
  font-size: 13px;
  color: var(--muted);
}
.video-card.placeholder {
  opacity: 0.55;
  cursor: default;
}

/* ---------- Photos ---------- */
.photo-group { margin-top: 34px; }
.photo-group h2 { font-weight: normal; font-size: 24px; }
.gallery {
  margin-top: 24px;
  columns: 4 220px;
  column-gap: 12px;
}
.gallery img {
  width: 100%;
  margin-bottom: 12px;
  border-radius: 8px;
  cursor: pointer;
  break-inside: avoid;
  transition: opacity 0.15s;
}
.gallery img:hover { opacity: 0.85; }
.empty-state {
  margin-top: 60px;
  text-align: center;
  color: var(--muted);
}
.empty-state h2 { font-weight: normal; margin-bottom: 8px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 16, 12, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 40px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 56px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px;
  user-select: none;
}
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

@media (max-width: 600px) {
  .site-header { flex-direction: column; gap: 12px; }
  .site-header nav a:first-child { margin-left: 0; }
}
