* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #0a0a0a;
  color: #dcdcdc;
  font-family: "Manrope", sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 80px 24px;
  opacity: 0;
  animation: pageIn 0.6s ease forwards;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.page { width: 100%; max-width: 10in; }

.head { margin-bottom: 40px; }
h1 {
  font-size: 22px;
  font-weight: 400;
  color: #f2f2f2;
  margin: 0 0 12px;
}
h1 .dash { color: #5c5c5c; margin: 0 4px; }

.crumbs {
  font-size: 13px;
  color: #6a6a6a;
}
.crumbs a {
  color: #c4c4c4;
  text-decoration: none;
  font-style: italic;
  transition: color .25s ease;
}
.crumbs a:hover { color: #f2f2f2; }
.crumbs .sep { margin: 0 6px; color: #3a3a3a; }

.list {
  display: flex;
  flex-direction: column;
}
.entry {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.entry:first-child { border-top: 1px solid rgba(255,255,255,0.06); }
.entry-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.entry-icon {
  width: 16px;
  text-align: center;
  font-size: 12px;
  color: #a8a8a8;
  flex-shrink: 0;
}
.entry-name {
  font-size: 14px;
  color: #c4c4c4;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .25s ease;
  padding-left: 4px;
}
.entry.is-dir .entry-name { padding-left: 0; }
.entry:hover .entry-name { color: #f2f2f2; }
.entry-meta {
  margin-left: auto;
  padding-left: 16px;
  font-size: 12px;
  color: #4a4a4a;
  flex-shrink: 0;
  white-space: nowrap;
}
.entry-dl {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #4a4a4a;
  text-decoration: none;
  font-size: 12px;
  flex-shrink: 0;
  transition: color .2s ease, background .2s ease;
}
.entry-dl:hover { color: #f2f2f2; background: rgba(255,255,255,0.08); }

.empty {
  padding: 40px 0;
  color: #4a4a4a;
  font-size: 13px;
  font-style: italic;
}
.empty i { margin-right: 8px; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.lightbox-close, .lightbox-dl {
  position: fixed;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: #dcdcdc;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease;
}
.lightbox-close:hover, .lightbox-dl:hover { background: rgba(255,255,255,0.14); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-dl { top: 24px; right: 76px; }

@media (max-width: 480px) {
  body { padding: 48px 16px; }
  .entry-meta { display: none; }
}
