/* Media Library — additive styles. Inherits header/toolbar/lightbox from styles.css. */

.nav-cluster {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-btn-subtle {
  background: transparent;
  color: #4B5563;
  border: 1px solid #D1D5DB;
}
.nav-btn-subtle:hover {
  background: #F3F4F6;
  color: #111827;
}

/* Breadcrumb */
.breadcrumb {
  margin-top: 18px;
  font-size: 14px;
  color: #6B7280;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}
.breadcrumb a {
  color: #B45309;
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 4px;
}
.breadcrumb a:hover { background: #FEF3E7; text-decoration: underline; }
.breadcrumb .bc-sep { color: #D1D5DB; margin: 0 2px; }
.breadcrumb .bc-current { color: #111827; font-weight: 600; }

/* Folder grid */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.folder-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 20px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.folder-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  border-color: #B45309;
}
.folder-svg {
  width: 40px;
  height: 40px;
  fill: #B45309;
  opacity: 0.9;
}
.folder-card-archive .folder-svg { fill: #9CA3AF; }
.folder-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #111827;
}
.folder-count { font-size: 12px; color: #9CA3AF; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.media-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.media-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.media-card-archived {
  opacity: 0.72;
}
.media-card-archived:hover {
  opacity: 1;
}
.media-card-archived .media-thumb {
  background: #4B5563;
}

.media-thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #111827;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-thumb video,
.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.media-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.media-play {
  position: absolute;
  font-size: 48px;
  color: #fff;
  opacity: 0.78;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.media-meta {
  padding: 14px 16px 16px;
  font-size: 13px;
  color: #374151;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.media-id {
  font-weight: 600;
  font-size: 14px;
  color: #111827;
  font-family: 'Inter', sans-serif;
}
.media-lane {
  font-size: 11.5px;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.media-caption {
  margin-top: 4px;
  color: #1F2937;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  line-height: 1.35;
}
.media-hook {
  font-size: 12px;
  color: #9CA3AF;
}
.media-results {
  margin-top: 6px;
  padding: 4px 8px;
  background: #F3F4F6;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11.5px;
  color: #1F2937;
}

/* Lightbox extensions */
.lightbox-content video,
.lightbox-content img {
  max-width: min(92vw, 720px);
  max-height: 80vh;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  background: #000;
}
.lightbox-meta {
  margin-top: 16px;
  color: #F9FAFB;
  max-width: 720px;
}
.lightbox-meta h2 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  margin: 0 0 4px;
}
.lightbox-sub {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #9CA3AF;
  margin: 0 0 12px;
}
.lightbox-caption {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  color: #F3F4F6;
  margin: 0 0 14px;
}
.lightbox-line {
  font-size: 13px;
  color: #D1D5DB;
  margin: 4px 0;
}
.lightbox-line a {
  color: #60A5FA;
  text-decoration: none;
}
.lightbox-line a:hover {
  text-decoration: underline;
}
.lightbox-dim {
  color: #9CA3AF;
  font-size: 12px;
}

.empty .hint {
  margin-top: 12px;
  font-size: 13px;
  color: #6B7280;
}
.empty code {
  background: #F3F4F6;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12.5px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  color: #1F2937;
}
