/* New design - vanilla, no frameworks. Optimized for LCP/CLS. */
:root {
  --bg: #0d0d0f;
  --bg-card: #16161a;
  --bg-side: #121214;
  --border: #2a2a2e;
  --text: #e4e4e7;
  --text-muted: #71717a;
  --accent: #f97316;
  --accent-hover: #fb923c;
  --radius: 12px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; vertical-align: middle; display: block; }

/* Layout */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--bg-side);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.main { flex: 1; padding: 1rem 1.5rem; max-width: 720px; margin: 0 auto; }

/* Sidebar */
.sidebar-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-logo {
  display: block;
  width: 140px;
  height: auto;
}
.sidebar-nav {
  padding: 1rem 0;
  flex: 1;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; }
.nav-list { margin: 0; padding: 0 0.75rem; list-style: none; }
.nav-list li { margin: 0; }
.nav-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: var(--text-muted);
  transition: color .15s, background .15s;
}
.nav-list a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-list a.active { color: var(--accent); }
.nav-icon { width: 20px; height: 20px; flex-shrink: 0; }
.side-profiles { padding: 1rem 0.75rem; border-top: 1px solid var(--border); }
.side-profiles h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  padding: 0 0.5rem;
}
.side-profiles ul { margin: 0; padding: 0; list-style: none; }
.side-profiles li { margin-bottom: 0.5rem; }
.side-profiles li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
}
.side-profiles li a:hover { background: rgba(255,255,255,.04); }
.side-profiles .thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Mobile header */
.mob-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-side);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.mob-head .logo { width: 120px; }
.mob-menu {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mob-menu svg { width: 24px; height: 24px; }

/* Cards */
.listing { display: flex; flex-direction: column; gap: 1.5rem; }
[data-content-visibility] { content-visibility: auto; contain-intrinsic-size: 0 500px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-h {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.card-name { font-weight: 600; font-size: 1rem; }
.card-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 1rem;
}
.card-img-main { grid-column: 1 / -1; justify-self: center; max-width: 520px; }
.card-img-wrap {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg);
}
.card-img-wrap img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.card-ft {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.card-link {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 8px;
  transition: background .15s;
}
.card-link:hover { background: var(--accent-hover); color: #000; }

/* Top bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem 0;
  margin-bottom: 0.5rem;
}
.search-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-btn:hover { color: var(--text); background: rgba(255,255,255,.04); }
.search-btn svg { width: 22px; height: 22px; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.6);
  padding: 1rem;
}
.modal.open { display: flex; }
.modal-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 100%;
  max-width: 400px;
}
.modal-inner form { display: flex; gap: 0.5rem; }
.modal-inner input {
  flex: 1;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}
.modal-inner input::placeholder { color: var(--text-muted); }
.modal-inner button {
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: #000;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* Footer */
.foot { margin-top: 2rem; padding: 1.5rem 0; border-top: 1px solid var(--border); text-align: center; font-size: 0.875rem; color: var(--text-muted); }
.foot a { color: var(--text-muted); }
.foot a:hover { color: var(--accent); }
.foot a + a { margin-left: 1rem; }

.listing-empty { text-align: center; padding: 3rem; color: var(--text-muted); }
.page-static h1 { font-size: 1.5rem; margin: 0 0 1rem; }
.page-static p { margin: 0 0 1rem; color: var(--text-muted); }
.page-static .alpha a { display: inline-block; margin: 0 0.25rem 0.5rem 0; padding: 0.25rem 0.5rem; background: var(--bg-card); border-radius: 6px; }
.page-static .alpha a:hover { background: var(--accent); color: #000; }
.page-static .search-form { display: flex; gap: 0.5rem; margin: 1rem 0; }
.page-static .search-form input { flex: 1; padding: 0.65rem 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
.page-static .search-form button { padding: 0.65rem 1rem; background: var(--accent); color: #000; border: 0; border-radius: 8px; font-weight: 600; cursor: pointer; }

@media (max-width: 900px) {
  .sidebar { position: fixed; left: -260px; top: 0; z-index: 20; transition: left .2s; height: 100vh; }
  .sidebar.open { left: 0; }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 19;
  }
  .sidebar-overlay.open { display: block; }
  .mob-head { display: flex; }
  .main { padding-top: 0.5rem; }
}
