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

body {
  background: #111;
  color: #eee;
  font-family: system-ui, -apple-system, sans-serif;
  padding: 20px;
  min-height: 100vh;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.folder-sub {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 26px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 6px;
  color: #ddd;
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 18px;
  transition: background 0.15s ease;
}
.back-link:hover {
  background: #2a2a2a;
  color: #fff;
}

/* ---------- Menu covers ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.menu-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
}
.menu-cover:hover { transform: scale(1.03); }

.menu-cover video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.menu-cover .label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* ---------- Folder tile grid ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.tile {
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.tile video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #000;
}

.tile .caption {
  padding: 8px;
  font-size: 0.78rem;
  color: #bbb;
  text-align: center;
  word-break: break-all;
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }

.lb-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lb-inner video {
  max-width: 90vw;
  max-height: 78vh;
  background: #000;
  border-radius: 6px;
  display: block;
}

.lb-close {
  position: absolute;
  top: -46px; right: 0;
  background: none;
  border: none;
  color: #ddd;
  font-size: 1.4rem;
  cursor: pointer;
}
.lb-close:hover { color: #fff; }

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 2.4rem;
  width: 54px;
  height: 90px;
  cursor: pointer;
  border-radius: 6px;
  line-height: 1;
}
.lb-arrow:hover { background: rgba(0,0,0,0.8); }
.lb-prev { left: -70px; }
.lb-next { right: -70px; }

@media (max-width: 900px) {
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}

.lb-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ccc;
  font-size: 0.85rem;
}

.lb-play {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  min-width: 52px;
}
.lb-play:hover { background: rgba(255,255,255,0.2); }

.lb-caption { color: #ddd; }