@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/inter-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/inter-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/inter-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --card: #141414;
  --border: #2a2a2a;
  --text: #f5f5f5;
  --muted: #a3a3a3;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; flex-wrap: wrap; gap: 0.5rem; }
.logo { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: 0.875rem; }
.nav-links a:hover { color: white; }
.profile-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-top: 1rem; }

@media (min-width: 768px) {
  .container { padding: 0 1.5rem; }
  .logo { font-size: 1.5rem; }
  .nav-links { gap: 1.5rem; }
  .profile-layout { grid-template-columns: 320px 1fr; gap: 2.5rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .text-4xl { font-size: 2.25rem; }
}

@media (max-width: 640px) {
  .text-4xl { font-size: 1.5rem; }
  .text-3xl { font-size: 1.25rem; }
  .text-2xl { font-size: 1.1rem; }
  .p-6 { padding: 0.75rem; }
  .p-5 { padding: 0.75rem; }
  .profile-layout { gap: 1rem; }
  .card { border-radius: 0.75rem; }
  .aspect-square { max-height: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
  .container { padding: 0 0.75rem; }
}
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: white;
  color: black;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn:hover { background: #e5e5e5; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid var(--border);
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}
.grid { display: grid; gap: 2rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.aspect-34 { aspect-ratio: 3/4; background: #111; }
.aspect-square { aspect-ratio: 1; background: #111; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.text-sm { font-size: 0.875rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; font-weight: 300; }
.font-medium { font-weight: 500; }
.font-light { font-weight: 300; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.bg-white { background: white; color: black; }
.bg-white-10 { background: rgba(255,255,255,0.1); }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; margin: 0 auto; }
input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: white;
  font-family: inherit;
}
input:focus, textarea:focus { outline: none; border-color: white; }
.sticky { position: sticky; }
.top-24 { top: 6rem; }
footer {
  border-top: 1px solid var(--border);
  margin-top: 5rem;
  padding: 2rem 0;
  text-align: center;
  color: #666;
  font-size: 0.875rem;
}
.blur-sm { filter: blur(4px); }
.group:hover img { transform: scale(1.05); transition: transform 0.5s; }
.badge { font-size: 0.75rem; padding: 0.25rem 0.5rem; background: rgba(255,255,255,0.1); border-radius: 9999px; }
.error { color: #f87171; text-align: center; margin-bottom: 1rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.inline-form { display: inline; }
.linkish {
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
}
.linkish:hover { color: white; }
.tiny { padding: 0.25rem 0.6rem; font-size: 0.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.actions form { display: inline; }
.table-wrap { overflow-x: auto; }
.two-col { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.profile-hero { width: 100%; height: 320px; object-fit: cover; background: #111; }
.profile-hero.placeholder { display: flex; align-items: center; justify-content: center; color: #666; }
.thumb { width: 100%; min-height: 9rem; aspect-ratio: 1; object-fit: cover; border-radius: 0.5rem; background: #222; }
.thumb.locked { display: flex; align-items: center; justify-content: center; color: #666; }
.thumb-btn {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 9rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 0.5rem;
}
.thumb-btn img { pointer-events: none; }
.thumb-btn:hover, .thumb-btn:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.hero-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.hero-btn img { pointer-events: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.25rem 5rem;
  background: rgba(0, 0, 0, 0.92);
}
.lightbox.open { display: flex; }
.lightbox img {
  width: min(1100px, 96vw);
  height: 86vh;
  max-width: 96vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 0.5rem;
  background: transparent;
}
.gallery-grid video { grid-column: 1 / -1; width: 100%; border-radius: 0.5rem; background: #111; }
.lightbox-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.lightbox-close { position: absolute; top: 1rem; right: 1rem; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.75rem; min-height: 240px; }
.video-tile { position: relative; background: #111; border-radius: 0.75rem; overflow: hidden; min-height: 200px; }
.video-tile video { width: 100%; height: 100%; min-height: 200px; object-fit: cover; background: #111; }
.video-name { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,0.6); padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; }
@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .profile-hero { height: 420px; }
}
@media (max-width: 640px) {
  .profile-hero { height: 220px; }
}
.admin-table th, .admin-table td { padding: 0.75rem; border-bottom: 1px solid var(--border); text-align: left; }
.admin-table th { color: var(--muted); font-weight: 500; }
