/* Force metadata section to behave like a vertical block */
#metadataSection {
  display: block !important;
  width: 100% !important;
}

/* Force the button to take its own full-width row */
#cleanMetadataBtn {
  display: block !important;
  width: fit-content;
  margin-bottom: 1rem;
}

/* Table shrinks to content but stays BELOW the button */
#metadataTable {
  display: inline-table !important;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

/* Table cell styling */
#metadataTable th,
#metadataTable td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}

#metadataTable th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

#metadataTable td {
  font-size: 0.95rem;
  color: var(--text);
}

/* Small preview image */
#smallPreviewWrapper img {
  max-width: 200px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.2);
  padding: 4px;
}
