/* Masonry grid */
.masonry {
  column-count: 2;
  column-gap: 8px;
  padding: 8px;
}
@media (min-width: 640px) { .masonry { column-count: 3; } }
@media (min-width: 1024px) { .masonry { column-count: 4; } }
@media (min-width: 1280px) { .masonry { column-count: 5; } }

.masonry-item {
  break-inside: avoid;
  margin-bottom: 8px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  display: block;
}

/* Overlay info */
.asset-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  font-size: 12px;
  color: #eee;
}

.asset-overlay .asset-type-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
  background: rgba(255,255,255,0.15);
  margin-right: 4px;
}

/* FAB */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #d4a853;
  color: #0f0f1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  cursor: pointer;
  z-index: 50;
  border: none;
  text-decoration: none;
}

/* Filter chips */
.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  color: #aaa;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.15s;
}
.chip.active {
  background: #d4a853;
  color: #0f0f1a;
  border-color: #d4a853;
}

/* Search bar */
.search-bar {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 16px;
  color: white;
  width: 100%;
  font-size: 15px;
  outline: none;
}
.search-bar:focus {
  border-color: #d4a853;
}
.search-bar::placeholder {
  color: rgba(255,255,255,0.35);
}

/* Loading spinner */
.spinner {
  display: flex;
  justify-content: center;
  padding: 20px;
}
.spinner::after {
  content: '';
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: #d4a853;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Video indicator */
.video-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  color: #fff;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: rgba(255,255,255,0.4);
}
.empty-state p {
  font-size: 15px;
  margin-top: 8px;
}
